public void ThrowsWhenProcessIdIsNotDefined()
        {
            string unknownProcessId = _fixture.Create<string>();
            Mesh mesh = new Mesh();

            ObjParsingService service = new ObjParsingService();

            Assert.That(() => service.ProcessLine(unknownProcessId, mesh), Throws.InvalidOperationException);
        }
        public void CanInitializeProcessDictionary()
        {
            ObjParsingService service = new ObjParsingService();

            foreach (KeyValuePair<string, Action<string, Mesh>> pair in service.ProcessDictionary)
            {
                Assert.That(_processIds.Contains(pair.Key), Is.True);
                Assert.That(pair.Value, Is.Not.Null);
            }
        }
        public void ReturnWhenLineIsEmpty(string line)
        {
            Mesh mesh = new Mesh();

            ObjParsingService service = new ObjParsingService();
            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);
        }