public void ThrowsWhenProcessIdIsNotDefined() { string unknownProcessId = _fixture.Create<string>(); Mesh mesh = new Mesh(); ParsingService service = new ParsingService(); Assert.That(() => service.ProcessLine(unknownProcessId, mesh), Throws.InvalidOperationException); }
public void ReturnWhenLineIsEmpty(string line) { Mesh mesh = new Mesh(); ParsingService service = new ParsingService(); service.ProcessLine(line, mesh); Mesh emptyMesh = new Mesh(); Assert.That(mesh.MinVertex, Is.EqualTo(emptyMesh.MinVertex)); Assert.That(mesh.MaxVertex, Is.EqualTo(emptyMesh.MaxVertex)); Assert.That(mesh.Filename, Is.Null); Assert.That(mesh.SubMeshes, Is.Empty); }