@@ -24,7 +24,7 @@ private void ReadAndAssert_<T>(
2424 [ TestCase ( "0" , 0 ) ]
2525 [ TestCase ( "255" , 255 ) ]
2626 public void TestReadAndAssertByte ( string inputText , byte expectedValue ) {
27- using var tr = TextSchemaTestUtil . CreateTextReader ( inputText ) ;
27+ using var tr = new SchemaTextReader ( inputText ) ;
2828 this . ReadAndAssert_ ( tr , expectedValue , tr . ReadByte , tr . AssertByte ) ;
2929 }
3030
@@ -36,7 +36,7 @@ public void TestReadAndAssertByte(string inputText, byte expectedValue) {
3636 [ TestCase ( "0Xff" , 255 ) ]
3737 [ TestCase ( "ff" , 255 ) ]
3838 public void TestReadAndAssertHexByte ( string inputText , byte expectedValue ) {
39- using var tr = TextSchemaTestUtil . CreateTextReader ( inputText ) ;
39+ using var tr = new SchemaTextReader ( inputText ) ;
4040 this . ReadAndAssert_ ( tr , expectedValue , tr . ReadHexByte , tr . AssertHexByte ) ;
4141 }
4242
@@ -45,7 +45,7 @@ public void TestReadAndAssertHexByte(string inputText, byte expectedValue) {
4545 [ TestCase ( "127" , 127 ) ]
4646 [ TestCase ( "-128" , - 128 ) ]
4747 public void TestReadAndAssertSByte ( string inputText , sbyte expectedValue ) {
48- using var tr = TextSchemaTestUtil . CreateTextReader ( inputText ) ;
48+ using var tr = new SchemaTextReader ( inputText ) ;
4949 this . ReadAndAssert_ ( tr , expectedValue , tr . ReadSByte , tr . AssertSByte ) ;
5050 }
5151
@@ -54,7 +54,7 @@ public void TestReadAndAssertSByte(string inputText, sbyte expectedValue) {
5454 [ TestCase ( "0xFF" , - 1 ) ]
5555 public void
5656 TestReadAndAssertHexSByte ( string inputText , sbyte expectedValue ) {
57- using var tr = TextSchemaTestUtil . CreateTextReader ( inputText ) ;
57+ using var tr = new SchemaTextReader ( inputText ) ;
5858 this . ReadAndAssert_ ( tr ,
5959 expectedValue ,
6060 tr . ReadHexSByte ,
@@ -65,7 +65,7 @@ public void
6565 [ TestCase ( "0" , 0 ) ]
6666 [ TestCase ( "12345" , 12345 ) ]
6767 public void TestReadAndAssertInt16 ( string inputText , short expectedValue ) {
68- using var tr = TextSchemaTestUtil . CreateTextReader ( inputText ) ;
68+ using var tr = new SchemaTextReader ( inputText ) ;
6969 this . ReadAndAssert_ ( tr , expectedValue , tr . ReadInt16 , tr . AssertInt16 ) ;
7070 }
7171
@@ -74,39 +74,39 @@ public void TestReadAndAssertInt16(string inputText, short expectedValue) {
7474 [ TestCase ( "12345" , ( ushort ) 12345 ) ]
7575 public void
7676 TestReadAndAssertUInt16 ( string inputText , ushort expectedValue ) {
77- using var tr = TextSchemaTestUtil . CreateTextReader ( inputText ) ;
77+ using var tr = new SchemaTextReader ( inputText ) ;
7878 this . ReadAndAssert_ ( tr , expectedValue , tr . ReadUInt16 , tr . AssertUInt16 ) ;
7979 }
8080
8181 [ Test ]
8282 [ TestCase ( "0" , 0 ) ]
8383 [ TestCase ( "1234567" , 1234567 ) ]
8484 public void TestReadAndAssertInt32 ( string inputText , int expectedValue ) {
85- using var tr = TextSchemaTestUtil . CreateTextReader ( inputText ) ;
85+ using var tr = new SchemaTextReader ( inputText ) ;
8686 this . ReadAndAssert_ ( tr , expectedValue , tr . ReadInt32 , tr . AssertInt32 ) ;
8787 }
8888
8989 [ Test ]
9090 [ TestCase ( "0" , ( uint ) 0 ) ]
9191 [ TestCase ( "1234567" , ( uint ) 1234567 ) ]
9292 public void TestReadAndAssertUInt32 ( string inputText , uint expectedValue ) {
93- using var tr = TextSchemaTestUtil . CreateTextReader ( inputText ) ;
93+ using var tr = new SchemaTextReader ( inputText ) ;
9494 this . ReadAndAssert_ ( tr , expectedValue , tr . ReadUInt32 , tr . AssertUInt32 ) ;
9595 }
9696
9797 [ Test ]
9898 [ TestCase ( "0" , 0 ) ]
9999 [ TestCase ( "123456789" , 123456789 ) ]
100100 public void TestReadAndAssertInt64 ( string inputText , long expectedValue ) {
101- using var tr = TextSchemaTestUtil . CreateTextReader ( inputText ) ;
101+ using var tr = new SchemaTextReader ( inputText ) ;
102102 this . ReadAndAssert_ ( tr , expectedValue , tr . ReadInt64 , tr . AssertInt64 ) ;
103103 }
104104
105105 [ Test ]
106106 [ TestCase ( "0" , ( ulong ) 0 ) ]
107107 [ TestCase ( "123456789" , ( ulong ) 123456789 ) ]
108108 public void TestReadAndAssertUInt64 ( string inputText , ulong expectedValue ) {
109- using var tr = TextSchemaTestUtil . CreateTextReader ( inputText ) ;
109+ using var tr = new SchemaTextReader ( inputText ) ;
110110 this . ReadAndAssert_ ( tr , expectedValue , tr . ReadUInt64 , tr . AssertUInt64 ) ;
111111 }
112112
@@ -116,7 +116,7 @@ public void TestReadAndAssertUInt64(string inputText, ulong expectedValue) {
116116 [ TestCase ( "0.01" , 0.01f ) ]
117117 [ TestCase ( "-0.01" , - 0.01f ) ]
118118 public void TestReadAndAssertSingle ( string inputText , float expectedValue ) {
119- using var tr = TextSchemaTestUtil . CreateTextReader ( inputText ) ;
119+ using var tr = new SchemaTextReader ( inputText ) ;
120120 this . ReadAndAssert_ ( tr , expectedValue , tr . ReadSingle , tr . AssertSingle ) ;
121121 }
122122
@@ -127,7 +127,7 @@ public void TestReadAndAssertSingle(string inputText, float expectedValue) {
127127 [ TestCase ( "-0.01" , - 0.01 ) ]
128128 public void
129129 TestReadAndAssertDouble ( string inputText , double expectedValue ) {
130- using var tr = TextSchemaTestUtil . CreateTextReader ( inputText ) ;
130+ using var tr = new SchemaTextReader ( inputText ) ;
131131 this . ReadAndAssert_ ( tr , expectedValue , tr . ReadDouble , tr . AssertDouble ) ;
132132 }
133133}
0 commit comments