43 references to Equal
Microsoft.AspNetCore.DataProtection.Tests (15)
Cng\CbcAuthenticatedEncryptorTests.cs (1)
32
Assert.
Equal
(plaintext.AsSpan(), decipheredtext.AsSpan());
Cng\GcmAuthenticatedEncryptorTests.cs (1)
29
Assert.
Equal
(plaintext.AsSpan(), decipheredtext.AsSpan());
KeyManagement\KeyRingBasedDataProtectorTests.cs (12)
48
Assert.
Equal
(expectedPlaintext, actualPlaintext.AsSpan());
49
Assert.
Equal
(expectedAad, actualAad.AsSpan());
86
Assert.
Equal
(expectedPlaintext, actualPlaintext.AsSpan());
87
Assert.
Equal
(expectedAad, actualAad.AsSpan());
426
Assert.
Equal
(expectedCiphertext, actualCiphertext.AsSpan());
427
Assert.
Equal
(expectedAad, actualAad.AsSpan());
473
Assert.
Equal
(expectedCiphertext, actualCiphertext.AsSpan());
474
Assert.
Equal
(expectedAad, actualAad.AsSpan());
522
Assert.
Equal
(expectedCiphertext, actualCiphertext.AsSpan());
523
Assert.
Equal
(expectedAad, actualAad.AsSpan());
597
Assert.
Equal
(expectedPlaintext, actualPlaintext.AsSpan());
598
Assert.
Equal
(expectedAad, actualAad.AsSpan());
Managed\ManagedAuthenticatedEncryptorTests.cs (1)
28
Assert.
Equal
(plaintext.AsSpan(), decipheredtext.AsSpan());
Microsoft.DotNet.XUnitAssert.Tests (28)
SpanAssertsTests.cs (28)
715
Assert.
Equal
(value1.AsSpan(), value2.AsSpan());
716
Assert.
Equal
(value2.AsSpan(), value1.AsSpan());
719
Assert.
Equal
(value1.AsSpan(), value2.Spanify());
720
Assert.
Equal
(value2.AsSpan(), value1.Spanify());
723
Assert.
Equal
(value1.Spanify(), value2.AsSpan());
724
Assert.
Equal
(value2.Spanify(), value1.AsSpan());
727
Assert.
Equal
(value1.Spanify(), value2.Spanify());
728
Assert.
Equal
(value2.Spanify(), value1.Spanify());
749
assertFailure(() => Assert.
Equal
(new int[] { 1, 0, 2, 3 }.AsSpan(), new int[] { 1, 2, 3 }.AsSpan()));
750
assertFailure(() => Assert.
Equal
(new int[] { 1, 0, 2, 3 }.AsSpan(), new int[] { 1, 2, 3 }.Spanify()));
751
assertFailure(() => Assert.
Equal
(new int[] { 1, 0, 2, 3 }.Spanify(), new int[] { 1, 2, 3 }.AsSpan()));
752
assertFailure(() => Assert.
Equal
(new int[] { 1, 0, 2, 3 }.Spanify(), new int[] { 1, 2, 3 }.Spanify()));
772
assertFailure(() => Assert.
Equal
(new int[] { 1, 2, 3 }.AsSpan(), new int[] { 1, 2, 3, 4 }.AsSpan()));
773
assertFailure(() => Assert.
Equal
(new int[] { 1, 2, 3 }.AsSpan(), new int[] { 1, 2, 3, 4 }.Spanify()));
774
assertFailure(() => Assert.
Equal
(new int[] { 1, 2, 3 }.Spanify(), new int[] { 1, 2, 3, 4 }.AsSpan()));
775
assertFailure(() => Assert.
Equal
(new int[] { 1, 2, 3 }.Spanify(), new int[] { 1, 2, 3, 4 }.Spanify()));
795
Assert.
Equal
(value1.AsSpan(), value2.AsSpan());
796
Assert.
Equal
(value2.AsSpan(), value1.AsSpan());
799
Assert.
Equal
(value1.AsSpan(), value2.Spanify());
800
Assert.
Equal
(value2.AsSpan(), value1.Spanify());
803
Assert.
Equal
(value1.Spanify(), value2.AsSpan());
804
Assert.
Equal
(value2.Spanify(), value1.AsSpan());
807
Assert.
Equal
(value1.Spanify(), value2.Spanify());
808
Assert.
Equal
(value2.Spanify(), value1.Spanify());
828
assertFailure(() => Assert.
Equal
(new string[] { "yes", "no", "maybe" }.AsSpan(), new string[] { "yes", "no", "maybe", "so" }.AsSpan()));
829
assertFailure(() => Assert.
Equal
(new string[] { "yes", "no", "maybe" }.AsSpan(), new string[] { "yes", "no", "maybe", "so" }.Spanify()));
830
assertFailure(() => Assert.
Equal
(new string[] { "yes", "no", "maybe" }.Spanify(), new string[] { "yes", "no", "maybe", "so" }.AsSpan()));
831
assertFailure(() => Assert.
Equal
(new string[] { "yes", "no", "maybe" }.Spanify(), new string[] { "yes", "no", "maybe", "so" }.Spanify()));