Skip to content

Commit 3b3754e

Browse files
committed
Cleanup and Fix file not reverted to the original state
1 parent 454c48b commit 3b3754e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

exampleTest/BinaryTest.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,15 @@ public void CheckUTF8TextConvertedToBinaryData()
5050
Assert.True(true);
5151
}
5252

53-
5453
[Fact]
5554
public void CheckUTF8TextConvertedWithASCIIBinaryDataThrows()
5655
{
5756
const string TEXT = "( ͡° ͜ʖ ͡°)";
5857

5958
Assert.Throws<Exception>(() => check.CheckBinary(Encoding.ASCII.GetBytes(TEXT)));
59+
60+
// Return back the original content
61+
File.WriteAllBytes(Path.Combine(check.CheckDirectory, $"{nameof(BinaryTest)}.{nameof(CheckUTF8TextConvertedWithASCIIBinaryDataThrows)}.bin"), Encoding.UTF8.GetBytes(TEXT));
6062
}
6163
}
6264
}

0 commit comments

Comments
 (0)