11using System . Runtime . InteropServices ;
2- using FluentAssertions ;
32using Microsoft . VisualStudio . TestTools . UnitTesting ;
43
54namespace WCharT . Tests ;
@@ -13,7 +12,7 @@ public void TestEncoding()
1312 var text = "Test" ;
1413 var str = new WCharTString ( text ) ;
1514
16- str . GetString ( ) . Should ( ) . Be ( text ) ;
15+ Assert . AreEqual ( str . GetString ( ) , text ) ;
1716 }
1817
1918 [ TestMethod ]
@@ -23,8 +22,9 @@ public void BufferSizeIsRetained()
2322 var str = new WCharTString ( bufferSize ) ;
2423
2524 var result = str . GetString ( ) ;
26- result . Should ( ) . Be ( new string ( new [ ] { char . MinValue , char . MinValue , char . MinValue } ) ) ;
27- result . Length . Should ( ) . Be ( bufferSize ) ;
25+
26+ Assert . AreEqual ( result , new string ( new [ ] { char . MinValue , char . MinValue , char . MinValue } ) ) ;
27+ Assert . AreEqual ( result . Length , bufferSize ) ;
2828 }
2929
3030 [ TestMethod ]
@@ -47,7 +47,7 @@ public void TestUnicode()
4747 fixed ( byte * p = data )
4848 {
4949 var str = new WCharTString ( p ) ;
50- str . GetString ( ) . Should ( ) . Be ( new string ( new [ ] { '\u0100 ' , '\u0100 ' } ) ) ;
50+ Assert . AreEqual ( str . GetString ( ) , new string ( new [ ] { '\u0100 ' , '\u0100 ' } ) ) ;
5151 }
5252 }
5353#pragma warning restore CA1861
@@ -79,7 +79,7 @@ public void TestUtf32()
7979 fixed ( byte * p = data )
8080 {
8181 var str = new WCharTString ( p ) ;
82- str . GetString ( ) . Should ( ) . Be ( new string ( new [ ] { '\u0100 ' , '\u0100 ' } ) ) ;
82+ Assert . AreEqual ( str . GetString ( ) , new string ( new [ ] { '\u0100 ' , '\u0100 ' } ) ) ;
8383 }
8484 }
8585#pragma warning restore CA1861
0 commit comments