Skip to content

Commit 4a44860

Browse files
committed
unit test update
1 parent 9c4ff1e commit 4a44860

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/CatLib.Core.Tests/Support/Stream/PipelineStreamTests.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ public void TestSeek()
118118
}
119119

120120
[TestMethod]
121-
[ExpectedException(typeof(NotSupportedException))]
122121
public void TestSetLength()
123122
{
124123
var stream = new PipelineStream(256);
@@ -134,19 +133,17 @@ public void TestSetPosition()
134133
}
135134

136135
[TestMethod]
137-
[ExpectedException(typeof(NotSupportedException))]
138136
public void TestGetPosition()
139137
{
140138
var stream = new PipelineStream(256);
141-
var pos = stream.Position;
139+
Assert.AreEqual(0, stream.Position);
142140
}
143141

144142
[TestMethod]
145-
[ExpectedException(typeof(NotSupportedException))]
146143
public void TestGetLength()
147144
{
148145
var stream = new PipelineStream(256);
149-
var length = stream.Length;
146+
Assert.AreEqual(0, stream.Length);
150147
}
151148
}
152149
}

0 commit comments

Comments
 (0)