Skip to content

Commit

Permalink
Standardize test names
Browse files Browse the repository at this point in the history
  • Loading branch information
fjeremic committed May 21, 2020
1 parent 1f9546b commit 648c0b7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
12 changes: 6 additions & 6 deletions BinaryTools.Elf.Tests/TestElfFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ namespace BinaryTools.Elf.Tests
public class TestElfFile
{
[Fact]
public void FileExists()
public void TestFileExists()
{
var stream = new FileStream("Binaries/base32", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
_ = ElfFile.ReadElfFile(reader);
}

[Fact]
public void ClosedStream()
public void TestClosedStream()
{
var stream = new FileStream("Binaries/base32", FileMode.Open, FileAccess.Read);
stream.Close();
Expand All @@ -26,15 +26,15 @@ public void ClosedStream()
}

[Fact]
public void NativeEnidanness()
public void TestNativeEnidanness()
{
var stream = new FileStream("Binaries/base32", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Assert.Equal(reader.Endianness, EndianBitConverter.NativeEndianness);
}

[Fact]
public void InvalidMagicBytes()
public void TestInvalidMagicBytes()
{
var stream = new FileStream("Binaries/invalidmagicbytes", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand All @@ -44,7 +44,7 @@ public void InvalidMagicBytes()
}

[Fact]
public void InvalidClass()
public void TestInvalidClass()
{
var stream = new FileStream("Binaries/invalidclass", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand All @@ -54,7 +54,7 @@ public void InvalidClass()
}

[Fact]
public void InvalidEndianness()
public void TestInvalidEndianness()
{
var stream = new FileStream("Binaries/invalidendianness", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand Down
40 changes: 20 additions & 20 deletions BinaryTools.Elf.Tests/TestElfHeader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace BinaryTools.Elf.Tests
public class TestElfHeader
{
[Fact]
public void CorrectClass32()
public void TestClass32()
{
var stream = new FileStream("Binaries/helloworld32le", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand All @@ -17,7 +17,7 @@ public void CorrectClass32()
}

[Fact]
public void CorrectClass64()
public void TestClass64()
{
var stream = new FileStream("Binaries/helloworld64le", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand All @@ -27,7 +27,7 @@ public void CorrectClass64()
}

[Fact]
public void CorrectEndiannessLE()
public void TestEndiannessLE()
{
var stream = new FileStream("Binaries/helloworld64le", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand All @@ -37,7 +37,7 @@ public void CorrectEndiannessLE()
}

[Fact]
public void CorrectEndiannessBE()
public void TestEndiannessBE()
{
var stream = new FileStream("Binaries/helloworld64be", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand All @@ -47,7 +47,7 @@ public void CorrectEndiannessBE()
}

[Fact]
public void CorrectOSABI()
public void TestOSABI()
{
var stream = new FileStream("Binaries/base32", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand All @@ -57,7 +57,7 @@ public void CorrectOSABI()
}

[Fact]
public void CorrectOSABIVersion()
public void TestOSABIVersion()
{
var stream = new FileStream("Binaries/base32", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand All @@ -67,7 +67,7 @@ public void CorrectOSABIVersion()
}

[Fact]
public void CorrectFlags()
public void TestFlags()
{
var stream = new FileStream("Binaries/base32", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand All @@ -77,7 +77,7 @@ public void CorrectFlags()
}

[Fact]
public void CorrectType()
public void TestType()
{
var stream = new FileStream("Binaries/base32", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand All @@ -87,7 +87,7 @@ public void CorrectType()
}

[Fact]
public void CorrectMachineX8664()
public void TestMachineX8664()
{
var stream = new FileStream("Binaries/base32", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand All @@ -97,7 +97,7 @@ public void CorrectMachineX8664()
}

[Fact]
public void CorrectMachineI386()
public void TestMachineI386()
{
var stream = new FileStream("Binaries/helloworld32le", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand All @@ -107,7 +107,7 @@ public void CorrectMachineI386()
}

[Fact]
public void CorrectMachineS390()
public void TestMachineS390()
{
var stream = new FileStream("Binaries/helloworld64be", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand All @@ -117,7 +117,7 @@ public void CorrectMachineS390()
}

[Fact]
public void CorrectVersion()
public void TestVersion()
{
var stream = new FileStream("Binaries/base32", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand All @@ -127,7 +127,7 @@ public void CorrectVersion()
}

[Fact]
public void CorrectEntryOffset()
public void TestEntryOffset()
{
var stream = new FileStream("Binaries/base32", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand All @@ -137,7 +137,7 @@ public void CorrectEntryOffset()
}

[Fact]
public void CorrectSectionHeaderOffset()
public void TestSectionHeaderOffset()
{
var stream = new FileStream("Binaries/base32", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand All @@ -147,7 +147,7 @@ public void CorrectSectionHeaderOffset()
}

[Fact]
public void CorrectSectionHeaderSize()
public void TestSectionHeaderSize()
{
var stream = new FileStream("Binaries/base32", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand All @@ -157,7 +157,7 @@ public void CorrectSectionHeaderSize()
}

[Fact]
public void CorrectSectionHeaderEntryCount()
public void TestSectionHeaderEntryCount()
{
var stream = new FileStream("Binaries/base32", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand All @@ -167,7 +167,7 @@ public void CorrectSectionHeaderEntryCount()
}

[Fact]
public void CorrectProgramHeaderOffset()
public void TestProgramHeaderOffset()
{
var stream = new FileStream("Binaries/base32", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand All @@ -177,7 +177,7 @@ public void CorrectProgramHeaderOffset()
}

[Fact]
public void CorrectProgramHeaderSize()
public void TestProgramHeaderSize()
{
var stream = new FileStream("Binaries/base32", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand All @@ -187,7 +187,7 @@ public void CorrectProgramHeaderSize()
}

[Fact]
public void CorrectProgramHeaderEntryCount()
public void TestProgramHeaderEntryCount()
{
var stream = new FileStream("Binaries/base32", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand All @@ -197,7 +197,7 @@ public void CorrectProgramHeaderEntryCount()
}

[Fact]
public void CorrectStringSectionIndex()
public void TestStringSectionIndex()
{
var stream = new FileStream("Binaries/base32", FileMode.Open, FileAccess.Read);
var reader = new EndianBinaryReader(stream, EndianBitConverter.NativeEndianness);
Expand Down

0 comments on commit 648c0b7

Please sign in to comment.