public void ParseDoesNotThrowIfFileHasValidFormat() { using (var stream = TestDataAsStream(validFormat)) Assert.That(() => PLYParser.Parse(stream), Throws.Nothing); }
public void ParseThrowsExceptionIfFileHasInvalidMagic() { using (var stream = TestDataAsStream(invalidMagic)) Assert.That(() => PLYParser.Parse(stream), Throws.InstanceOf <InvalidMagicNumberException>()); }
public void ParseThrowsExceptionIfFileHasInvalidFormat() { using (var stream = TestDataAsStream(invalidFormat)) Assert.That(() => PLYParser.Parse(stream), Throws.Exception); }
public void ParseThrowsExceptionIfFileIsEmpty() { using (var stream = new MemoryStream()) Assert.That(() => PLYParser.Parse(stream), Throws.Exception); }