public void TestItAddsVors() { Vor vor = VorFactory.Make(); collection.Add(vor); Assert.Equal(vor, collection.Vors[0]); }
public VorTest() { this.model = new Vor( "BHD", "123.456", new Coordinate("abc", "def"), DefinitionFactory.Make(), DocblockFactory.Make(), CommentFactory.Make() ); }
public void TestItAddsVorDataTwoLetterIdentifier() { RunParserOnLines(new List <string>(new[] { "BH 112.050 N050.57.00.000 W001.21.24.490;comment" })); Vor result = sectorElementCollection.Vors[0]; Assert.Equal("BH", result.Identifier); Assert.Equal("112.050", result.Frequency); Assert.Equal(new Coordinate("N050.57.00.000", "W001.21.24.490"), result.Coordinate); AssertExpectedMetadata(result); }
public void TestItReturnsElementsInOrder() { Vor first = VorFactory.Make("DVR"); Vor second = VorFactory.Make("BIG"); Vor third = VorFactory.Make("KOK"); sectorElements.Add(first); sectorElements.Add(second); sectorElements.Add(third); IEnumerable <ICompilableElementProvider> expected = new List <ICompilableElementProvider>() { second, first, third }; AssertCollectedItems(expected); }