Skip to content

Commit f88a063

Browse files
committed
Remove outdated, unnecessary tests
1 parent 515f02b commit f88a063

1 file changed

Lines changed: 1 addition & 36 deletions

File tree

MiloLib.Tests/IOTests.cs

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -7,40 +7,5 @@
77

88
public class IOTests
99
{
10-
/// <summary>
11-
/// Creates an RB3-versioned ObjectDir, writes it to a MemoryStream, reads it back, and compares some fields to ensure they were written and read correctly.
12-
/// </summary>
13-
[Fact]
14-
public void TestRB3ObjectDirCreation()
15-
{
16-
ObjectDir objectDir = new ObjectDir(27);
17-
18-
MemoryStream stream = new MemoryStream();
19-
EndianWriter writer = new EndianWriter(stream, Endian.BigEndian);
20-
21-
objectDir.objFields.type = "Test_Directory";
22-
objectDir.proxyPath = "test_path.milo";
23-
24-
objectDir.Write(writer, false, new DirectoryMeta(), null);
25-
26-
MemoryStream stream2 = new MemoryStream();
27-
28-
stream.Position = 0;
29-
30-
stream.CopyTo(stream2);
31-
32-
stream2.Position = 0;
33-
34-
EndianReader reader = new EndianReader(stream2, Endian.BigEndian);
35-
36-
ObjectDir objectDir2 = new ObjectDir(27);
37-
objectDir2.Read(reader, false, new DirectoryMeta(), new DirectoryMeta.Entry("ObjectDir", "test", objectDir2));
38-
39-
// compare the two fields we set in the ObjectDirs
40-
Assert.Equal(objectDir.objFields.type.value, objectDir2.objFields.type.value);
41-
Assert.Equal(objectDir.proxyPath.value, objectDir2.proxyPath.value);
42-
43-
// make sure the two MemoryStreams have the same size, meaning the same data was written and read
44-
Assert.Equal(stream.Length, stream2.Length);
45-
}
10+
// TODO: Actually add tests lmao
4611
}

0 commit comments

Comments
 (0)