public void IsValid_With_Executable_File_Returns_True() { var file = TestingUtils.GetFileFromResources("clrtest.any.dll"); var isValid = PortableExecutableImage.IsValid(file); isValid.Should().BeTrue(); }
public void IsValid_With_Text_File_Returns_False() { var file = TestingUtils.GetFileFromResources("license.txt"); var isValid = PortableExecutableImage.IsValid(file); isValid.Should().BeFalse(); }