Skip to content

refactor: Move 2.09 -> 2.20 #818

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: v12.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_10.Tests;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_09.Tests;

[TestClass]
public class Comparison
Expand All @@ -12,4 +12,4 @@ public void Main_WriteBooleanStatements()
IntelliTect.TestTools.Console.ConsoleAssert.Expect(
expected, Program.Main);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_11.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_10.Tests;

[TestClass]
public class SingleQuoteTests
Expand All @@ -13,4 +13,4 @@ public void Main_WriteSingleQuote()
IntelliTect.TestTools.Console.ConsoleAssert.Expect(
expected, SingleQuote.Main);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_12.Tests;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_11.Tests;

[TestClass]
public class SingleQuoteTests
Expand All @@ -13,4 +13,4 @@ public void Main_WriteSmiley()
IntelliTect.TestTools.Console.ConsoleAssert.Expect(
expected, SingleQuote.Main);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using IntelliTect.TestTools.Console;
using IntelliTect.TestTools.Console;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_13.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_12.Tests;

[TestClass]
public class DuelOfWitsTests
Expand All @@ -12,4 +12,4 @@ public void Main_WriteDizzyQuote()

ConsoleAssert.Expect(expected, (Action)DuelOfWits.Main, NormalizeOptions.None);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_14.Tests;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_13.Tests;

[TestClass]
public class TriangleTests
Expand All @@ -18,4 +18,4 @@ public void Main_WriteTriangle()
IntelliTect.TestTools.Console.ConsoleAssert.Expect(
expected, Triangle.Main);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_15.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_14.Tests;

[TestClass]
public class InterpolationTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.CodeAnalysis;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_16.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_15.Tests;

[TestClass]
public class NewLineInterpolationTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.CodeAnalysis;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_17.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_16.Tests;

[TestClass]
public class CombiningLiteralsWithInterpolationTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_18.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_17.Tests;

[TestClass]
public class SingleRawLiteralTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_19.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_18.Tests;

[TestClass]
public class RawLiteralsWithInterpolationTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_20.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_19.Tests;

[TestClass]
public class TriangleTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Globalization;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_09.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_20.Tests;

[TestClass]
public class ProgramTests
Expand All @@ -20,4 +20,4 @@ public void Main_WriteBooleanStatements()
IntelliTect.TestTools.Console.ConsoleAssert.Expect(
expected, Program.Main);
}
}
}
2 changes: 1 addition & 1 deletion src/Chapter02/Listing02.01.SpecifyingLiteralValues.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_01;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_01;

public class Program
{
Expand Down
2 changes: 1 addition & 1 deletion src/Chapter02/Listing02.03.SpecifyingALiteralDecimal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ public static void Main()
Console.WriteLine(1.6180339887498948M);
#endregion INCLUDE
}
}
}
2 changes: 1 addition & 1 deletion src/Chapter02/Listing02.04.UsingTheDigitSeparator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ public static void Main()
Console.WriteLine(9_814_072_356M);
#endregion INCLUDE
}
}
}
2 changes: 1 addition & 1 deletion src/Chapter02/Listing02.05.ExponentialNotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ public static void Main()
Console.WriteLine(6.023E23F);
#endregion INCLUDE
}
}
}
2 changes: 1 addition & 1 deletion src/Chapter02/Listing02.06.HexadecimalLiteralValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ public static void Main()
Console.WriteLine(0x002A);
#endregion INCLUDE
}
}
}
2 changes: 1 addition & 1 deletion src/Chapter02/Listing02.07.BinaryLiteralValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ public static void Main()
Console.WriteLine(0b101010);
#endregion INCLUDE
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ public static void Main()
Console.WriteLine($"0x{42:X}");
#endregion INCLUDE
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_10;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_09;

public class Program
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_11;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_10;

#region INCLUDE
public class SingleQuote
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_12;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_11;

public class SingleQuote
{
Expand All @@ -10,4 +10,4 @@ public static void Main()
Console.WriteLine('\u0029');
#endregion INCLUDE
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_13;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_12;

public class DuelOfWits
{
Expand All @@ -10,4 +10,4 @@ public static void Main()
Console.Write("\n\"Wait 'til I get going!\"\n");
#endregion INCLUDE
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_14;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_13;

public class Triangle
{
Expand All @@ -14,4 +14,4 @@ public static void Main()
End");
#endregion INCLUDE
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_15;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_14;

public class Program
{
Expand All @@ -18,4 +18,4 @@ public static void Main()
Console.WriteLine($"Your full name is {firstName} {lastName}.");
#endregion INCLUDE
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_16;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_15;
public class Program
{
public static void Main()
Expand All @@ -21,4 +21,4 @@ public static void Main()
}");
#endregion INCLUDE
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_17;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_16;

public class Program
{
Expand All @@ -19,4 +19,4 @@ public static void Main()
{firstName} {lastName}");
#endregion INCLUDE
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_18;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_17;

public class Program
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_19;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_18;
public class Program
{
public static void Main()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_20;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_19;
public class Triangle
{
public static void Main()
Expand Down Expand Up @@ -26,4 +26,4 @@ public static void Main()
""");
#endregion INCLUDE
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_09;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_20;

using System;
using System.Globalization;
Expand All @@ -18,7 +18,8 @@ public static void Main()
currencyText = $"{number:C}";
Console.WriteLine(currencyText);

// Prove that string interpolation and the ToString method produce equivalent results with format specifiers
// Prove that string interpolation and the ToString method
// produce equivalent results with format specifiers
string toStringCurrencyText = number.ToString("C");
Console.WriteLine($"{currencyText == toStringCurrencyText}: {currencyText} == {toStringCurrencyText}");

Expand All @@ -29,4 +30,4 @@ public static void Main()
// ...
#endregion INCLUDE
}
}
}
2 changes: 1 addition & 1 deletion src/Chapter02/Listing02.22.UsingStringsLengthMember.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ public static void Main()
#endregion HIGHLIGHT
}
}
#endregion INCLUDE
#endregion INCLUDE
2 changes: 1 addition & 1 deletion src/Chapter02/Listing02.24.WorkingWithStrings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ public static void Main()
Console.WriteLine(uppercase);
}
}
#endregion INCLUDE
#endregion INCLUDE
Loading