Beispiel #1
0
        public void TestFileReader_LoadFileWithDataSets_ShouldReadDataSets()
        {
            TestFileReader testReader = new TestFileReader(fileService);

            testReader.LoadFile("my test");
            var dataSets = testReader.GetDataSets();

            dataSets.Should().HaveCount(2);
            dataSets[0].Name.Should().Be("Numero Uno");
            dataSets[0].Inputs["a"].Should().Be("Hammerhead");
            dataSets[0].Inputs["b"].Should().Be("Mako");
            dataSets[1].Name.Should().Be("El Segundo");
            dataSets[1].Inputs["x"].Should().Be("Orange");
            dataSets[1].Inputs["y"].Should().Be("Red");
            dataSets[1].Inputs["z"].Should().Be("Green");
        }