diff --git a/azure/sdk-identity-resources-storage/AzureIdentityStorageExample.csproj b/azure/sdk-identity-resources-storage/AzureIdentityStorageExample.csproj index d75fd3b5541..a537b14df31 100644 --- a/azure/sdk-identity-resources-storage/AzureIdentityStorageExample.csproj +++ b/azure/sdk-identity-resources-storage/AzureIdentityStorageExample.csproj @@ -21,8 +21,8 @@ - - + + diff --git a/core/getting-started/golden/app/app.csproj b/core/getting-started/golden/app/app.csproj index 567473137e9..2c07b563a36 100644 --- a/core/getting-started/golden/app/app.csproj +++ b/core/getting-started/golden/app/app.csproj @@ -6,7 +6,7 @@ Exe - net7.0 + net8.0 diff --git a/core/getting-started/golden/library/library.csproj b/core/getting-started/golden/library/library.csproj index 13088deec84..104a812f7e1 100644 --- a/core/getting-started/golden/library/library.csproj +++ b/core/getting-started/golden/library/library.csproj @@ -1,6 +1,6 @@  - netstandard1.4 + netstandard2.0 diff --git a/core/getting-started/golden/test-library/test-library.csproj b/core/getting-started/golden/test-library/test-library.csproj index 95df48e8ae7..c26e0ca5455 100644 --- a/core/getting-started/golden/test-library/test-library.csproj +++ b/core/getting-started/golden/test-library/test-library.csproj @@ -2,7 +2,7 @@ Exe - net7.0 + net8.0 diff --git a/core/getting-started/unit-testing-using-dotnet-test/PrimeService.Tests/PrimeService.Tests.csproj b/core/getting-started/unit-testing-using-dotnet-test/PrimeService.Tests/PrimeService.Tests.csproj index 2c8d81cd311..5dae28f2fb3 100644 --- a/core/getting-started/unit-testing-using-dotnet-test/PrimeService.Tests/PrimeService.Tests.csproj +++ b/core/getting-started/unit-testing-using-dotnet-test/PrimeService.Tests/PrimeService.Tests.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 false diff --git a/core/getting-started/unit-testing-using-mstest/PrimeService.Tests/PrimeService.Tests.csproj b/core/getting-started/unit-testing-using-mstest/PrimeService.Tests/PrimeService.Tests.csproj index 93eb3be52ee..c15426b52c4 100644 --- a/core/getting-started/unit-testing-using-mstest/PrimeService.Tests/PrimeService.Tests.csproj +++ b/core/getting-started/unit-testing-using-mstest/PrimeService.Tests/PrimeService.Tests.csproj @@ -1,13 +1,13 @@ - net7.0 + net8.0 - + diff --git a/core/getting-started/unit-testing-using-nunit/PrimeService.Tests/PrimeService.Tests.csproj b/core/getting-started/unit-testing-using-nunit/PrimeService.Tests/PrimeService.Tests.csproj index 70c9e8bf3c3..d63727987f4 100644 --- a/core/getting-started/unit-testing-using-nunit/PrimeService.Tests/PrimeService.Tests.csproj +++ b/core/getting-started/unit-testing-using-nunit/PrimeService.Tests/PrimeService.Tests.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 false diff --git a/core/getting-started/unit-testing-using-nunit/PrimeService.Tests/PrimeService_IsPrimeShould.cs b/core/getting-started/unit-testing-using-nunit/PrimeService.Tests/PrimeService_IsPrimeShould.cs index 4bf0e9e677e..45cb012e34b 100644 --- a/core/getting-started/unit-testing-using-nunit/PrimeService.Tests/PrimeService_IsPrimeShould.cs +++ b/core/getting-started/unit-testing-using-nunit/PrimeService.Tests/PrimeService_IsPrimeShould.cs @@ -20,7 +20,7 @@ public void IsPrime_InputIs1_ReturnFalse() { var result = _primeService.IsPrime(1); - Assert.IsFalse(result, "1 should not be prime"); + Assert.That(result, Is.False, "1 should not be prime"); } #endregion #region Sample_TestCode @@ -31,7 +31,7 @@ public void IsPrime_ValuesLessThan2_ReturnFalse(int value) { var result = _primeService.IsPrime(value); - Assert.IsFalse(result, $"{value} should not be prime"); + Assert.That(result, Is.False, $"{value} should not be prime"); } #endregion } diff --git a/core/getting-started/unit-testing-vb-dotnet-test/PrimeService.Tests/PrimeService.Tests.vbproj b/core/getting-started/unit-testing-vb-dotnet-test/PrimeService.Tests/PrimeService.Tests.vbproj index 38e827d6121..86853abbf7f 100644 --- a/core/getting-started/unit-testing-vb-dotnet-test/PrimeService.Tests/PrimeService.Tests.vbproj +++ b/core/getting-started/unit-testing-vb-dotnet-test/PrimeService.Tests/PrimeService.Tests.vbproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 false diff --git a/core/getting-started/unit-testing-vb-mstest/PrimeService.Tests/PrimeService.Tests.vbproj b/core/getting-started/unit-testing-vb-mstest/PrimeService.Tests/PrimeService.Tests.vbproj index abb0ee6c1a3..5cd8419ab1f 100644 --- a/core/getting-started/unit-testing-vb-mstest/PrimeService.Tests/PrimeService.Tests.vbproj +++ b/core/getting-started/unit-testing-vb-mstest/PrimeService.Tests/PrimeService.Tests.vbproj @@ -1,14 +1,14 @@ - + - net7.0 + net8.0 false - + diff --git a/core/getting-started/unit-testing-vb-nunit/PrimeService.Tests/PrimeService.Tests.vbproj b/core/getting-started/unit-testing-vb-nunit/PrimeService.Tests/PrimeService.Tests.vbproj index 5873ff965c7..d9977def96d 100644 --- a/core/getting-started/unit-testing-vb-nunit/PrimeService.Tests/PrimeService.Tests.vbproj +++ b/core/getting-started/unit-testing-vb-nunit/PrimeService.Tests/PrimeService.Tests.vbproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 false diff --git a/core/getting-started/unit-testing-vb-nunit/PrimeService.Tests/PrimeService_IsPrimeShould.vb b/core/getting-started/unit-testing-vb-nunit/PrimeService.Tests/PrimeService_IsPrimeShould.vb index f29721a6c82..2d228a22f44 100644 --- a/core/getting-started/unit-testing-vb-nunit/PrimeService.Tests/PrimeService_IsPrimeShould.vb +++ b/core/getting-started/unit-testing-vb-nunit/PrimeService.Tests/PrimeService_IsPrimeShould.vb @@ -1,6 +1,7 @@ Imports NUnit.Framework Namespace PrimeService.Tests + ' Public Class PrimeService_IsPrimeShould @@ -12,7 +13,7 @@ Namespace PrimeService.Tests Sub IsPrime_ValuesLessThan2_ReturnFalse(value As Integer) Dim result As Boolean = _primeService.IsPrime(value) - Assert.IsFalse(result, $"{value} should not be prime") + Assert.That(result, [Is].False, $"{value} should not be prime") End Sub @@ -22,7 +23,7 @@ Namespace PrimeService.Tests Public Sub IsPrime_PrimesLessThan10_ReturnTrue(value As Integer) Dim result As Boolean = _primeService.IsPrime(value) - Assert.IsTrue(result, $"{value} should be prime") + Assert.That(result, [Is].True, $"{value} should be prime") End Sub @@ -32,8 +33,10 @@ Namespace PrimeService.Tests Public Sub IsPrime_NonPrimesLessThan10_ReturnFalse(value As Integer) Dim result As Boolean = _primeService.IsPrime(value) - Assert.IsFalse(result, $"{value} should not be prime") + Assert.That(result, [Is].False, $"{value} should not be prime") End Sub + End Class + ' End Namespace diff --git a/core/getting-started/unit-testing-with-fsharp-mstest/MathService.Tests/MathService.Tests.fsproj b/core/getting-started/unit-testing-with-fsharp-mstest/MathService.Tests/MathService.Tests.fsproj index ef8122c16ae..13f127f0682 100644 --- a/core/getting-started/unit-testing-with-fsharp-mstest/MathService.Tests/MathService.Tests.fsproj +++ b/core/getting-started/unit-testing-with-fsharp-mstest/MathService.Tests/MathService.Tests.fsproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 false @@ -12,7 +12,7 @@ - + diff --git a/core/getting-started/unit-testing-with-fsharp-nunit/MathService.Tests/MathService.Tests.fsproj b/core/getting-started/unit-testing-with-fsharp-nunit/MathService.Tests/MathService.Tests.fsproj index 8fb064a3cc2..42a4e70d8e1 100644 --- a/core/getting-started/unit-testing-with-fsharp-nunit/MathService.Tests/MathService.Tests.fsproj +++ b/core/getting-started/unit-testing-with-fsharp-nunit/MathService.Tests/MathService.Tests.fsproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 false diff --git a/core/getting-started/unit-testing-with-fsharp-nunit/MathService.Tests/Tests.fs b/core/getting-started/unit-testing-with-fsharp-nunit/MathService.Tests/Tests.fs index 83f012aa098..b8fdbe7c0fb 100644 --- a/core/getting-started/unit-testing-with-fsharp-nunit/MathService.Tests/Tests.fs +++ b/core/getting-started/unit-testing-with-fsharp-nunit/MathService.Tests/Tests.fs @@ -7,11 +7,10 @@ open MathService [] let ``My test`` () = - Assert.True(true) + Assert.That(true, Is.True) //[] -//let ``Fail every time`` () = Assert.True(false) - +//let ``Fail every time`` () = Assert.That(false, Is.True) [] let ``Sequence of Evens returns empty collection`` () = diff --git a/core/getting-started/unit-testing-with-fsharp/MathService.Tests/MathService.Tests.fsproj b/core/getting-started/unit-testing-with-fsharp/MathService.Tests/MathService.Tests.fsproj index 3eb94447c84..561f53f6359 100644 --- a/core/getting-started/unit-testing-with-fsharp/MathService.Tests/MathService.Tests.fsproj +++ b/core/getting-started/unit-testing-with-fsharp/MathService.Tests/MathService.Tests.fsproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 false diff --git a/core/getting-started/unit-testing-with-fsharp/MathService.Tests/Tests.fs b/core/getting-started/unit-testing-with-fsharp/MathService.Tests/Tests.fs index eaf3d9e4189..5827c05787c 100644 --- a/core/getting-started/unit-testing-with-fsharp/MathService.Tests/Tests.fs +++ b/core/getting-started/unit-testing-with-fsharp/MathService.Tests/Tests.fs @@ -12,7 +12,6 @@ let ``My test`` () = //[] //let ``Fail every time`` () = Assert.True(false) - [] let ``Sequence of Evens returns empty collection`` () = let expected = Seq.empty diff --git a/csharp/roslyn-sdk/Tutorials/MakeConst/MakeConst.Test/MakeConst.Test.csproj b/csharp/roslyn-sdk/Tutorials/MakeConst/MakeConst.Test/MakeConst.Test.csproj index 4fbdbfb3cfd..a54f6c6df95 100644 --- a/csharp/roslyn-sdk/Tutorials/MakeConst/MakeConst.Test/MakeConst.Test.csproj +++ b/csharp/roslyn-sdk/Tutorials/MakeConst/MakeConst.Test/MakeConst.Test.csproj @@ -8,7 +8,7 @@ - +