diff --git a/src/Chapter01.Tests/Listing01.02C.Tests.cs b/src/Chapter01.Tests/Listing01.02C.Tests.cs deleted file mode 100644 index b42cd4a40..000000000 --- a/src/Chapter01.Tests/Listing01.02C.Tests.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; - -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_02C.Tests -{ - [TestClass] - public class HelloWorldTests - { - [TestMethod] - public void Main_InigoHello() - { - const string expected = - @"Down -Side -Up"; - - IntelliTect.TestTools.Console.ConsoleAssert.Expect( - expected, HelloWorld.Main); - } - } -} \ No newline at end of file diff --git a/src/Chapter01.Tests/Listing01.02D.Tests.cs b/src/Chapter01.Tests/Listing01.02D.Tests.cs deleted file mode 100644 index 8ffeb5081..000000000 --- a/src/Chapter01.Tests/Listing01.02D.Tests.cs +++ /dev/null @@ -1,18 +0,0 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; - -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_02D.Tests -{ - [TestClass] - public class HelloWorldTests - { - [TestMethod] - public void Main_InigoHello() - { - const string expected = - @"Hello. My name is Inigo Montoya."; - - IntelliTect.TestTools.Console.ConsoleAssert.Expect( - expected, HelloWorld.Main); - } - } -} \ No newline at end of file diff --git a/src/Chapter01.Tests/Listing01.02B.Tests.cs b/src/Chapter01.Tests/Listing01.03.Tests.cs similarity index 83% rename from src/Chapter01.Tests/Listing01.02B.Tests.cs rename to src/Chapter01.Tests/Listing01.03.Tests.cs index 5f73830b4..89f0e8cf1 100644 --- a/src/Chapter01.Tests/Listing01.02B.Tests.cs +++ b/src/Chapter01.Tests/Listing01.03.Tests.cs @@ -1,6 +1,6 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_02B.Tests +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_03.Tests { [TestClass] public class HelloWorldTests @@ -16,4 +16,4 @@ public void Main_UpDown() expected, HelloWorld.Main); } } -} \ No newline at end of file +} diff --git a/src/Chapter01.Tests/Listing01.04.Tests.cs b/src/Chapter01.Tests/Listing01.04.Tests.cs index ff0253da7..c6c79599c 100644 --- a/src/Chapter01.Tests/Listing01.04.Tests.cs +++ b/src/Chapter01.Tests/Listing01.04.Tests.cs @@ -1,17 +1,20 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_04.Tests { [TestClass] - public class ProgramTests + public class HelloWorldTests { [TestMethod] public void Main_InigoHello() { - const string expected = @"Hello, My name is Inigo Montoya"; + const string expected = + @"Down +Side +Up"; IntelliTect.TestTools.Console.ConsoleAssert.Expect( - expected, Program.Main); + expected, HelloWorld.Main); } } -} \ No newline at end of file +} diff --git a/src/Chapter01.Tests/Listing01.05.Tests.cs b/src/Chapter01.Tests/Listing01.05.Tests.cs index 8289943e7..09ee5ca86 100644 --- a/src/Chapter01.Tests/Listing01.05.Tests.cs +++ b/src/Chapter01.Tests/Listing01.05.Tests.cs @@ -1,18 +1,18 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_05.Tests { [TestClass] - public class ProgramTests + public class HelloWorldTests { [TestMethod] - public void Main_GiveNone_GetZero() + public void Main_InigoHello() { - int expected = 0; - int value = Program.Main(Array.Empty()); + const string expected = + @"Hello. My name is Inigo Montoya."; - Assert.AreEqual(expected, value); + IntelliTect.TestTools.Console.ConsoleAssert.Expect( + expected, HelloWorld.Main); } } -} \ No newline at end of file +} diff --git a/src/Chapter01.Tests/Listing01.02E.Tests.cs b/src/Chapter01.Tests/Listing01.06.Tests.cs similarity index 84% rename from src/Chapter01.Tests/Listing01.02E.Tests.cs rename to src/Chapter01.Tests/Listing01.06.Tests.cs index 9d7e25320..c0fa40ca6 100644 --- a/src/Chapter01.Tests/Listing01.02E.Tests.cs +++ b/src/Chapter01.Tests/Listing01.06.Tests.cs @@ -1,6 +1,6 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_02E.Tests +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_06.Tests { [TestClass] public class HelloWorldTests @@ -15,4 +15,4 @@ public void Main_InigoHello() expected, Program.Main); } } -} \ No newline at end of file +} diff --git a/src/Chapter01.Tests/Listing01.08.Tests.cs b/src/Chapter01.Tests/Listing01.08.Tests.cs index 9a284f8c2..95e2d5527 100644 --- a/src/Chapter01.Tests/Listing01.08.Tests.cs +++ b/src/Chapter01.Tests/Listing01.08.Tests.cs @@ -1,17 +1,17 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_08.Tests { [TestClass] - public class HelloWorldTests + public class ProgramTests { [TestMethod] - public void Main_HelloToInigo() + public void Main_InigoHello() { - const string expected = @"Hello Inigo Montoya"; + const string expected = @"Hello, My name is Inigo Montoya"; IntelliTect.TestTools.Console.ConsoleAssert.Expect( - expected, HelloWorld.Main); + expected, Program.Main); } } -} \ No newline at end of file +} diff --git a/src/Chapter01.Tests/Listing01.09.Tests.cs b/src/Chapter01.Tests/Listing01.09.Tests.cs index 4a66d6ffa..8fcd472d7 100644 --- a/src/Chapter01.Tests/Listing01.09.Tests.cs +++ b/src/Chapter01.Tests/Listing01.09.Tests.cs @@ -1,4 +1,5 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_09.Tests { @@ -6,12 +7,12 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_09.Tests public class ProgramTests { [TestMethod] - public void Main_HelloToInigo() + public void Main_GiveNone_GetZero() { - const string expected = @"Hello Inigo Montoya"; + int expected = 0; + int value = Program.Main(Array.Empty()); - IntelliTect.TestTools.Console.ConsoleAssert.Expect( - expected, HelloWorld.Main); + Assert.AreEqual(expected, value); } } -} \ No newline at end of file +} diff --git a/src/Chapter01.Tests/Listing01.10.Tests.cs b/src/Chapter01.Tests/Listing01.10.Tests.cs index 505db793d..7330f7c9f 100644 --- a/src/Chapter01.Tests/Listing01.10.Tests.cs +++ b/src/Chapter01.Tests/Listing01.10.Tests.cs @@ -1,17 +1,17 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_10.Tests { [TestClass] - public class MiracleMaxTests + public class HelloWorldTests { [TestMethod] - public void Main_StormCastleShort() + public void Main_HelloToInigo() { - const string expected = @"Have fun storming the castle!"; + const string expected = @"Hello Inigo Montoya"; IntelliTect.TestTools.Console.ConsoleAssert.Expect( - expected, MiracleMax.Main); + expected, HelloWorld.Main); } } -} \ No newline at end of file +} diff --git a/src/Chapter01.Tests/Listing01.11.Tests.cs b/src/Chapter01.Tests/Listing01.11.Tests.cs index 8ebd6f3e8..821eb50b6 100644 --- a/src/Chapter01.Tests/Listing01.11.Tests.cs +++ b/src/Chapter01.Tests/Listing01.11.Tests.cs @@ -3,16 +3,15 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_11.Tests { [TestClass] - public class HelloWorldTests + public class ProgramTests { [TestMethod] - public void Main_InigoMantra_ProperOutput() + public void Main_HelloToInigo() { - const string expected = -@"My name is Inigo Montoya. -You killed my father...."; + const string expected = @"Hello Inigo Montoya"; - IntelliTect.TestTools.Console.ConsoleAssert.Expect(expected, HelloWorld.Main); + IntelliTect.TestTools.Console.ConsoleAssert.Expect( + expected, HelloWorld.Main); } } -} \ No newline at end of file +} diff --git a/src/Chapter01.Tests/Listing01.12.Tests.cs b/src/Chapter01.Tests/Listing01.12.Tests.cs index 42ca0caca..ee4d51e82 100644 --- a/src/Chapter01.Tests/Listing01.12.Tests.cs +++ b/src/Chapter01.Tests/Listing01.12.Tests.cs @@ -1,4 +1,4 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_12.Tests { @@ -6,15 +6,12 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_12.Tests public class MiracleMaxTests { [TestMethod] - public void Main_StormCastleLong() + public void Main_StormCastleShort() { - const string expected = -@"Have fun storming the castle! -Think it will work? -It would take a miracle."; + const string expected = @"Have fun storming the castle!"; IntelliTect.TestTools.Console.ConsoleAssert.Expect( - expected, StormingTheCastle.Main); + expected, MiracleMax.Main); } } -} \ No newline at end of file +} diff --git a/src/Chapter01.Tests/Listing01.13.Tests.cs b/src/Chapter01.Tests/Listing01.13.Tests.cs index 3c71ecd45..2f6dca2d1 100644 --- a/src/Chapter01.Tests/Listing01.13.Tests.cs +++ b/src/Chapter01.Tests/Listing01.13.Tests.cs @@ -3,16 +3,16 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_13.Tests { [TestClass] - public class Listing01_13_Tests + public class HelloWorldTests { [TestMethod] - public void Main_ItWouldTakeAMiracle_OutputWrittenToConsole() + public void Main_InigoMantra_ProperOutput() { const string expected = -@"It would take a miracle."; +@"My name is Inigo Montoya. +You killed my father...."; - IntelliTect.TestTools.Console.ConsoleAssert.Expect( - expected, StormingTheCastle.Main); + IntelliTect.TestTools.Console.ConsoleAssert.Expect(expected, HelloWorld.Main); } } -} \ No newline at end of file +} diff --git a/src/Chapter01.Tests/Listing01.14.Tests.cs b/src/Chapter01.Tests/Listing01.14.Tests.cs index 9b00a990d..c05d3adba 100644 --- a/src/Chapter01.Tests/Listing01.14.Tests.cs +++ b/src/Chapter01.Tests/Listing01.14.Tests.cs @@ -1,21 +1,20 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_14.Tests { [TestClass] - public class HeyYouTests + public class MiracleMaxTests { [TestMethod] - public void Main_InputInigoMontoya_WriteNothing() + public void Main_StormCastleLong() { const string expected = -@"Hey you! -Enter your first name: <>Enter your last name: <>"; +@"Have fun storming the castle! +Think it will work? +It would take a miracle."; IntelliTect.TestTools.Console.ConsoleAssert.Expect( - expected, HeyYou.Main); + expected, StormingTheCastle.Main); } } -} \ No newline at end of file +} diff --git a/src/Chapter01.Tests/Listing01.15.Tests.cs b/src/Chapter01.Tests/Listing01.15.Tests.cs index 82a35cfd7..c32f37eb0 100644 --- a/src/Chapter01.Tests/Listing01.15.Tests.cs +++ b/src/Chapter01.Tests/Listing01.15.Tests.cs @@ -1,17 +1,18 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_15.Tests { [TestClass] - public class ProgramTests + public class Listing01_13_Tests { [TestMethod] - public void Main_InputOne_WriteOne() + public void Main_ItWouldTakeAMiracle_OutputWrittenToConsole() { - const string expected = @"1<<1>>"; + const string expected = +@"It would take a miracle."; IntelliTect.TestTools.Console.ConsoleAssert.Expect( - expected, Program.Main); + expected, StormingTheCastle.Main); } } -} \ No newline at end of file +} diff --git a/src/Chapter01.Tests/Listing01.16.Tests.cs b/src/Chapter01.Tests/Listing01.16.Tests.cs index 6bc0bb8f4..6fa9abda1 100644 --- a/src/Chapter01.Tests/Listing01.16.Tests.cs +++ b/src/Chapter01.Tests/Listing01.16.Tests.cs @@ -1,21 +1,21 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_16.Tests { [TestClass] - public class ProgramTests + public class HeyYouTests { [TestMethod] - public void Main_InputInigoMontoya_WriteFirstLast() + public void Main_InputInigoMontoya_WriteNothing() { const string expected = @"Hey you! Enter your first name: <>Enter your last name: <>Your full name is Inigo Montoya."; +>>"; IntelliTect.TestTools.Console.ConsoleAssert.Expect( expected, HeyYou.Main); } } -} \ No newline at end of file +} diff --git a/src/Chapter01.Tests/Listing01.17.Tests.cs b/src/Chapter01.Tests/Listing01.17.Tests.cs index 919150ef6..35d11440f 100644 --- a/src/Chapter01.Tests/Listing01.17.Tests.cs +++ b/src/Chapter01.Tests/Listing01.17.Tests.cs @@ -1,4 +1,4 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_17.Tests { @@ -6,16 +6,12 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_17.Tests public class ProgramTests { [TestMethod] - public void Main_InputInigoMontoya_WriteFirstLast() + public void Main_InputOne_WriteOne() { - const string expected = -@"Hey you! -Enter your first name: <>Enter your last name: <>Your full name is Inigo Montoya."; + const string expected = @"1<<1>>"; IntelliTect.TestTools.Console.ConsoleAssert.Expect( - expected, HeyYou.Main); + expected, Program.Main); } } -} \ No newline at end of file +} diff --git a/src/Chapter01.Tests/Listing01.18.Tests.cs b/src/Chapter01.Tests/Listing01.18.Tests.cs index 9574333cc..233aa8ff7 100644 --- a/src/Chapter01.Tests/Listing01.18.Tests.cs +++ b/src/Chapter01.Tests/Listing01.18.Tests.cs @@ -1,4 +1,4 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_18.Tests { @@ -6,16 +6,16 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_18.Tests public class ProgramTests { [TestMethod] - public void Main_InputInigoMontoya_WriteLastFirst() + public void Main_InputInigoMontoya_WriteFirstLast() { const string expected = @"Hey you! Enter your first name: <>Enter your last name: <>Your full name is Montoya, Inigo."; +>>Your full name is Inigo Montoya."; IntelliTect.TestTools.Console.ConsoleAssert.Expect( - expected, Program.Main); + expected, HeyYou.Main); } } -} \ No newline at end of file +} diff --git a/src/Chapter01.Tests/Listing01.19.Tests.cs b/src/Chapter01.Tests/Listing01.19.Tests.cs index 30bd8d445..05f1baaa4 100644 --- a/src/Chapter01.Tests/Listing01.19.Tests.cs +++ b/src/Chapter01.Tests/Listing01.19.Tests.cs @@ -6,16 +6,16 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_19.Tests public class ProgramTests { [TestMethod] - public void Main_InputInigoMontoya_WriteLastFirst() + public void Main_InputInigoMontoya_WriteFirstLast() { const string expected = @"Hey you! Enter your first name: <>Enter your last name: <>Your full name is Montoya, Inigo."; +>>Your full name is Inigo Montoya."; IntelliTect.TestTools.Console.ConsoleAssert.Expect( - expected, CommentSamples.Main); + expected, HeyYou.Main); } } -} \ No newline at end of file +} diff --git a/src/Chapter01.Tests/Listing01.20.Tests.cs b/src/Chapter01.Tests/Listing01.20.Tests.cs new file mode 100644 index 000000000..008a7a470 --- /dev/null +++ b/src/Chapter01.Tests/Listing01.20.Tests.cs @@ -0,0 +1,21 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; + +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_20.Tests +{ + [TestClass] + public class ProgramTests + { + [TestMethod] + public void Main_InputInigoMontoya_WriteLastFirst() + { + const string expected = +@"Hey you! +Enter your first name: <>Enter your last name: <>Your full name is Montoya, Inigo."; + + IntelliTect.TestTools.Console.ConsoleAssert.Expect( + expected, Program.Main); + } + } +} diff --git a/src/Chapter01.Tests/Listing01.21.Tests.cs b/src/Chapter01.Tests/Listing01.21.Tests.cs new file mode 100644 index 000000000..1c5a66821 --- /dev/null +++ b/src/Chapter01.Tests/Listing01.21.Tests.cs @@ -0,0 +1,21 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; + +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_21.Tests +{ + [TestClass] + public class ProgramTests + { + [TestMethod] + public void Main_InputInigoMontoya_WriteLastFirst() + { + const string expected = +@"Hey you! +Enter your first name: <>Enter your last name: <>Your full name is Montoya, Inigo."; + + IntelliTect.TestTools.Console.ConsoleAssert.Expect( + expected, CommentSamples.Main); + } + } +} diff --git a/src/Chapter01/Listing01.02B.MultipleStatementsOneOneLine.cs b/src/Chapter01/Listing01.03.MultipleStatementsOneOneLine.cs similarity index 96% rename from src/Chapter01/Listing01.02B.MultipleStatementsOneOneLine.cs rename to src/Chapter01/Listing01.03.MultipleStatementsOneOneLine.cs index 97fd4fe53..bc0376b14 100644 --- a/src/Chapter01/Listing01.02B.MultipleStatementsOneOneLine.cs +++ b/src/Chapter01/Listing01.03.MultipleStatementsOneOneLine.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_02B +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_03 { public class HelloWorld { diff --git a/src/Chapter01/Listing01.02C.MultipleStatementsOnSeparateLines.cs b/src/Chapter01/Listing01.04.MultipleStatementsOnSeparateLines.cs similarity index 97% rename from src/Chapter01/Listing01.02C.MultipleStatementsOnSeparateLines.cs rename to src/Chapter01/Listing01.04.MultipleStatementsOnSeparateLines.cs index 95c3c7129..c7040c245 100644 --- a/src/Chapter01/Listing01.02C.MultipleStatementsOnSeparateLines.cs +++ b/src/Chapter01/Listing01.04.MultipleStatementsOnSeparateLines.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_02C +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_04 { public class HelloWorld { diff --git a/src/Chapter01/Listing01.02D.SplittingAStatementAcrossMultipleLines.cs b/src/Chapter01/Listing01.05.SplittingAStatementAcrossMultipleLines.cs similarity index 96% rename from src/Chapter01/Listing01.02D.SplittingAStatementAcrossMultipleLines.cs rename to src/Chapter01/Listing01.05.SplittingAStatementAcrossMultipleLines.cs index 5edb62189..dd30d8921 100644 --- a/src/Chapter01/Listing01.02D.SplittingAStatementAcrossMultipleLines.cs +++ b/src/Chapter01/Listing01.05.SplittingAStatementAcrossMultipleLines.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_02D +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_05 { public class HelloWorld { diff --git a/src/Chapter01/Listing01.02E.HelloWorldInC#.cs b/src/Chapter01/Listing01.06.HelloWorldInC#.cs similarity index 96% rename from src/Chapter01/Listing01.02E.HelloWorldInC#.cs rename to src/Chapter01/Listing01.06.HelloWorldInC#.cs index 8a9b6ebdc..79fcd62be 100644 --- a/src/Chapter01/Listing01.02E.HelloWorldInC#.cs +++ b/src/Chapter01/Listing01.06.HelloWorldInC#.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_02E +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_06 { #region INCLUDE public class Program diff --git a/src/Chapter01/Listing01.03.BasicClassDeclaration.cs b/src/Chapter01/Listing01.07.BasicClassDeclaration.cs similarity index 94% rename from src/Chapter01/Listing01.03.BasicClassDeclaration.cs rename to src/Chapter01/Listing01.07.BasicClassDeclaration.cs index ed417e637..20c646c2b 100644 --- a/src/Chapter01/Listing01.03.BasicClassDeclaration.cs +++ b/src/Chapter01/Listing01.07.BasicClassDeclaration.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_03 +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_07 { #region INCLUDE public class HelloWorld diff --git a/src/Chapter01/Listing01.04.BreakingApartHelloWorld.cs b/src/Chapter01/Listing01.08.BreakingApartHelloWorld.cs similarity index 98% rename from src/Chapter01/Listing01.04.BreakingApartHelloWorld.cs rename to src/Chapter01/Listing01.08.BreakingApartHelloWorld.cs index c62f01bb6..32f606294 100644 --- a/src/Chapter01/Listing01.04.BreakingApartHelloWorld.cs +++ b/src/Chapter01/Listing01.08.BreakingApartHelloWorld.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_04 +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_08 { #region INCLUDE public class Program // BEGIN Class definition diff --git a/src/Chapter01/Listing01.05.TheMainMethodWithParametersAndAReturn.cs b/src/Chapter01/Listing01.09.TheMainMethodWithParametersAndAReturn.cs similarity index 97% rename from src/Chapter01/Listing01.05.TheMainMethodWithParametersAndAReturn.cs rename to src/Chapter01/Listing01.09.TheMainMethodWithParametersAndAReturn.cs index 10dfc8427..e1af597ad 100644 --- a/src/Chapter01/Listing01.05.TheMainMethodWithParametersAndAReturn.cs +++ b/src/Chapter01/Listing01.09.TheMainMethodWithParametersAndAReturn.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_05 +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_09 { public class Program { diff --git a/src/Chapter01/Listing01.08.NoIndentationFormatting.cs b/src/Chapter01/Listing01.10.NoIndentationFormatting.cs similarity index 95% rename from src/Chapter01/Listing01.08.NoIndentationFormatting.cs rename to src/Chapter01/Listing01.10.NoIndentationFormatting.cs index 45582d740..ef9755445 100644 --- a/src/Chapter01/Listing01.08.NoIndentationFormatting.cs +++ b/src/Chapter01/Listing01.10.NoIndentationFormatting.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_08 +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_10 { #region INCLUDE public class HelloWorld diff --git a/src/Chapter01/Listing01.09.RemovingWhitespace.cs b/src/Chapter01/Listing01.11.RemovingWhitespace.cs similarity index 95% rename from src/Chapter01/Listing01.09.RemovingWhitespace.cs rename to src/Chapter01/Listing01.11.RemovingWhitespace.cs index fcf07c986..66b7aba50 100644 --- a/src/Chapter01/Listing01.09.RemovingWhitespace.cs +++ b/src/Chapter01/Listing01.11.RemovingWhitespace.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_09; +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_11; #region INCLUDE public class HelloWorld{public static void Main() diff --git a/src/Chapter01/Listing01.10.DeclaringAndAssigningAVariable.cs b/src/Chapter01/Listing01.12.DeclaringAndAssigningAVariable.cs similarity index 97% rename from src/Chapter01/Listing01.10.DeclaringAndAssigningAVariable.cs rename to src/Chapter01/Listing01.12.DeclaringAndAssigningAVariable.cs index 6a5925185..3935219bd 100644 --- a/src/Chapter01/Listing01.10.DeclaringAndAssigningAVariable.cs +++ b/src/Chapter01/Listing01.12.DeclaringAndAssigningAVariable.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_10 +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_12 { #region INCLUDE public class MiracleMax diff --git a/src/Chapter01/Listing01.11.DeclaringTwoVariablesWithinOneStatement.cs b/src/Chapter01/Listing01.13.DeclaringTwoVariablesWithinOneStatement.cs similarity index 98% rename from src/Chapter01/Listing01.11.DeclaringTwoVariablesWithinOneStatement.cs rename to src/Chapter01/Listing01.13.DeclaringTwoVariablesWithinOneStatement.cs index 67cf4b9a2..482a46a61 100644 --- a/src/Chapter01/Listing01.11.DeclaringTwoVariablesWithinOneStatement.cs +++ b/src/Chapter01/Listing01.13.DeclaringTwoVariablesWithinOneStatement.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_11 +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_13 { public class HelloWorld { diff --git a/src/Chapter01/Listing01.12.ChangingTheValueOfAVariable.cs b/src/Chapter01/Listing01.14.ChangingTheValueOfAVariable.cs similarity index 98% rename from src/Chapter01/Listing01.12.ChangingTheValueOfAVariable.cs rename to src/Chapter01/Listing01.14.ChangingTheValueOfAVariable.cs index 1bc9fc7a2..3d9f8d567 100644 --- a/src/Chapter01/Listing01.12.ChangingTheValueOfAVariable.cs +++ b/src/Chapter01/Listing01.14.ChangingTheValueOfAVariable.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_12 +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_14 { #region INCLUDE public class StormingTheCastle diff --git a/src/Chapter01/Listing01.13.AssignmentReturningAValueThatCanBeassignedAgain.cs b/src/Chapter01/Listing01.15.AssignmentReturningAValueThatCanBeassignedAgain.cs similarity index 98% rename from src/Chapter01/Listing01.13.AssignmentReturningAValueThatCanBeassignedAgain.cs rename to src/Chapter01/Listing01.15.AssignmentReturningAValueThatCanBeassignedAgain.cs index 2e004c494..850dcbcb4 100644 --- a/src/Chapter01/Listing01.13.AssignmentReturningAValueThatCanBeassignedAgain.cs +++ b/src/Chapter01/Listing01.15.AssignmentReturningAValueThatCanBeassignedAgain.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_13 +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_15 { #region INCLUDE public class StormingTheCastle diff --git a/src/Chapter01/Listing01.14.UsingSystemConsoleReadLine.cs b/src/Chapter01/Listing01.16.UsingSystemConsoleReadLine.cs similarity index 98% rename from src/Chapter01/Listing01.14.UsingSystemConsoleReadLine.cs rename to src/Chapter01/Listing01.16.UsingSystemConsoleReadLine.cs index b72777f7d..6184fe6e9 100644 --- a/src/Chapter01/Listing01.14.UsingSystemConsoleReadLine.cs +++ b/src/Chapter01/Listing01.16.UsingSystemConsoleReadLine.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_14 +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_16 { #region INCLUDE public class HeyYou diff --git a/src/Chapter01/Listing01.15.UsingSystemConsoleRead.cs b/src/Chapter01/Listing01.17.UsingSystemConsoleRead.cs similarity index 97% rename from src/Chapter01/Listing01.15.UsingSystemConsoleRead.cs rename to src/Chapter01/Listing01.17.UsingSystemConsoleRead.cs index 3bdbc2860..6cc9d5673 100644 --- a/src/Chapter01/Listing01.15.UsingSystemConsoleRead.cs +++ b/src/Chapter01/Listing01.17.UsingSystemConsoleRead.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_15 +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_17 { public class Program { diff --git a/src/Chapter01/Listing01.16.FormattingUsingStringInterpolation.cs b/src/Chapter01/Listing01.18.FormattingUsingStringInterpolation.cs similarity index 98% rename from src/Chapter01/Listing01.16.FormattingUsingStringInterpolation.cs rename to src/Chapter01/Listing01.18.FormattingUsingStringInterpolation.cs index 72287d026..5b2a320e5 100644 --- a/src/Chapter01/Listing01.16.FormattingUsingStringInterpolation.cs +++ b/src/Chapter01/Listing01.18.FormattingUsingStringInterpolation.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_16 +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_18 { #region INCLUDE public class HeyYou diff --git a/src/Chapter01/Listing01.17.FormattingUsingCompositeFormatting.cs b/src/Chapter01/Listing01.19.FormattingUsingCompositeFormatting.cs similarity index 98% rename from src/Chapter01/Listing01.17.FormattingUsingCompositeFormatting.cs rename to src/Chapter01/Listing01.19.FormattingUsingCompositeFormatting.cs index 609b4114d..88ef16dbd 100644 --- a/src/Chapter01/Listing01.17.FormattingUsingCompositeFormatting.cs +++ b/src/Chapter01/Listing01.19.FormattingUsingCompositeFormatting.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_17 +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_19 { #region INCLUDE public class HeyYou diff --git a/src/Chapter01/Listing01.18.SwappingTheIndexedPlaceholdersAndCorrespondingVariables.cs b/src/Chapter01/Listing01.20.SwappingTheIndexedPlaceholdersAndCorrespondingVariables.cs similarity index 98% rename from src/Chapter01/Listing01.18.SwappingTheIndexedPlaceholdersAndCorrespondingVariables.cs rename to src/Chapter01/Listing01.20.SwappingTheIndexedPlaceholdersAndCorrespondingVariables.cs index f650bd900..e7b2b345b 100644 --- a/src/Chapter01/Listing01.18.SwappingTheIndexedPlaceholdersAndCorrespondingVariables.cs +++ b/src/Chapter01/Listing01.20.SwappingTheIndexedPlaceholdersAndCorrespondingVariables.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_18 +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_20 { public class Program { diff --git a/src/Chapter01/Listing01.19.CommentingYourCode.cs b/src/Chapter01/Listing01.21.CommentingYourCode.cs similarity index 98% rename from src/Chapter01/Listing01.19.CommentingYourCode.cs rename to src/Chapter01/Listing01.21.CommentingYourCode.cs index 9f8e69585..a03aaade9 100644 --- a/src/Chapter01/Listing01.19.CommentingYourCode.cs +++ b/src/Chapter01/Listing01.21.CommentingYourCode.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_19; +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_21; #region INCLUDE public class CommentSamples diff --git a/src/Chapter01/Listing01.20.SampleCILOutput.cs b/src/Chapter01/Listing01.22.SampleCILOutput.cs similarity index 97% rename from src/Chapter01/Listing01.20.SampleCILOutput.cs rename to src/Chapter01/Listing01.22.SampleCILOutput.cs index acec609b7..a8c93bfe7 100644 --- a/src/Chapter01/Listing01.20.SampleCILOutput.cs +++ b/src/Chapter01/Listing01.22.SampleCILOutput.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_20 +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_22 { /* #region INCLUDE @@ -72,4 +72,4 @@ .maxstack 8 } // End of class HelloWorld.Program #endregion INCLUDE */ -} \ No newline at end of file +}