Skip to content

Commit

Permalink
Merge branch 'MMichaelis/UpdatingTables' of https://github.com/Intell…
Browse files Browse the repository at this point in the history
…iTect/EssentialCSharp into updatingTables
  • Loading branch information
A-Tanner committed Sep 20, 2023
2 parents 2c3582b + 2a1056d commit a190abe
Show file tree
Hide file tree
Showing 142 changed files with 292 additions and 171 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CleanupCache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cleanup
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Code-Analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup dotnet SDK
uses: actions/setup-dotnet@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/LocalesTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
matrix:
locale-lang: ["pt_BR.UTF-8", "fr_FR.UTF-8"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup dotnet SDK
uses: actions/setup-dotnet@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup dotnet SDK
uses: actions/setup-dotnet@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion src/Chapter01.Tests/Chapter01.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Update="Microsoft.CodeAnalysis" Version="4.7.0" />
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Update="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Update="MSTest.TestFramework" Version="3.1.1" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Chapter02.Tests/Chapter02.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Update="Microsoft.CodeAnalysis" Version="4.7.0" />
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Update="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Update="MSTest.TestFramework" Version="3.1.1" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Chapter03.Tests/Chapter03.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Update="Microsoft.CodeAnalysis" Version="4.7.0" />
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Update="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Update="MSTest.TestFramework" Version="3.1.1" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Chapter04.Tests/Chapter04.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Update="Microsoft.CodeAnalysis" Version="4.7.0" />
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Update="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Update="MSTest.TestFramework" Version="3.1.1" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Chapter05.Tests/Chapter05.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Update="Microsoft.CodeAnalysis" Version="4.7.0" />
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Update="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Update="MSTest.TestFramework" Version="3.1.1" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_10.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_08.Tests;

[TestClass]
public class ProgramTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_09.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_10.Tests;

[TestClass]
public class ProgramTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_11.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_12.Tests;

[TestClass]
public class ProgramTests
Expand All @@ -10,6 +10,6 @@ public class ProgramTests
public void Main_UsingToAvoidFullyQualifying_MethodCalledAsExpected()
{
IntelliTect.TestTools.Console.ConsoleAssert.Expect(
Listing05_10.Tests.ProgramTests.Expected, Program.Main);
Listing05_08.Tests.ProgramTests.Expected, Program.Main);
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_12.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_13.Tests;

[TestClass]
public class HeyYouTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_15.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_16.Tests;

[TestClass]
public class ProgramTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_16.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_17.Tests;

[TestClass]
public class ProgramTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_17.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_18.Tests;

[TestClass]
public class ProgramTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_18.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_19.Tests;

[TestClass]
public class ConvertToPhoneNumberTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_19.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_20.Tests;

[TestClass]
public class ProgramTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_20.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_21.Tests;

[TestClass]
public class ProgramTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_21.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_22.Tests;

[TestClass]
public class ProgramTests
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_22.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_24.Tests;

[TestClass]
public class ProgramTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_25.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_26.Tests;

[TestClass]
public class ExceptionHandlingTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_26.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_27.Tests;

[TestClass]
public class ExceptionHandlingTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_27.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_28.Tests;

[TestClass]
public class ExceptionHandlingTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_28.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_29.Tests;

[TestClass]
public class ProgramTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_29.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_30.Tests;

[TestClass]
public class ThrowingExceptionsTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_30.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_31.Tests;

[TestClass]
public class ThrowingExceptionsTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_31.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_32.Tests;

[TestClass]
public class ProgramTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_32.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_33.Tests;

[TestClass]
public class ProgramTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_33.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_34.Tests;

[TestClass]
public class ProgramTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_34.Tests;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_35.Tests;

[TestClass]
public class LeveragingTryParseTests
Expand Down
1 change: 0 additions & 1 deletion src/Chapter05/Chapter05.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
</PropertyGroup>
<ItemGroup>
<None Remove="Listing05.07.ImplicitUsingsGeneratedGlocalUsingDeclaratives.cs" />
<None Remove="Listing05.09.UsingElementInProjectFile.xml" />
</ItemGroup>
<ItemGroup>
<Using Include="System.Net" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// and the attribute is not available in .NET 6.0.
#pragma warning disable SYSLIB1045 // Convert to 'GeneratedRegexAttribute'.

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_10;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_08;

#region INCLUDE
// The using directive imports all types from the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
global using System.Text;
#region EXCLUDE

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_09;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_10;

#endregion EXCLUDE
public class Program
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
<Using Static="true" Include="System.Console"/>
</ItemGroup>
</Project>
<!--#endregion INCLUDE-->
<!--#endregion INCLUDE-->
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// and the attribute is not available in .NET 6.0.
#pragma warning disable SYSLIB1045 // Convert to 'GeneratedRegexAttribute'.

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_11;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_12;

#region INCLUDE
// The using directive imports all types from the
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_12;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_13;

#region INCLUDE
using static System.Console;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma warning disable CS0168 // Variable is declared but never used
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_13;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_14;

#region INCLUDE
#region HIGHLIGHT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma warning disable CS0168 // Variable is declared but never used
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_14;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_15;

#region INCLUDE

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_15;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_16;

#region INCLUDE
public class Program
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_16;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_17;

using System;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_17;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_18;

#region INCLUDE
public class Program
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_18;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_19;

public class ConvertToPhoneNumber
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_19;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_20;

using System;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_20;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_21;

#region INCLUDE
using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_21;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_22;

#region INCLUDE
using System.IO;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_22;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_23;

#region INCLUDE
public static class LineCounter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_23;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_24;

#region INCLUDE
public static class LineCounter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_24;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_25;

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

public class ExceptionHandling
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_26;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_27;

#region INCLUDE
public class ExceptionHandling
Expand Down
Loading

0 comments on commit a190abe

Please sign in to comment.