-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.patch
More file actions
34 lines (31 loc) · 740 Bytes
/
test.patch
File metadata and controls
34 lines (31 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- Calculator.cs
+++ Calculator.cs
@@ -8,6 +8,11 @@
return a + b;
}
+ public int Subtract(int a, int b)
+ {
+ return a - b;
+ }
+
public int Multiply(int a, int b)
{
return a * b;
@@ -15,7 +20,7 @@
public void PrintResult(int result)
{
- Console.WriteLine("Result: " + result);
+ Console.WriteLine($"The result is: {result}");
}
}
}
--- Helper.cs
+++ Helper.cs
@@ -6,8 +6,8 @@
{
public static void Log(string message)
{
- Console.WriteLine(message);
+ Console.WriteLine($"[LOG] {message}");
}
public static int Square(int number)