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