public void TestItAddsNdbs()
        {
            Ndb ndb = NdbFactory.Make();

            collection.Add(ndb);

            Assert.Equal(ndb, collection.Ndbs[0]);
        }
Exemplo n.º 2
0
 public NdbTest()
 {
     this.model = new Ndb(
         "BRI",
         "123.456",
         new Coordinate("abc", "def"),
         DefinitionFactory.Make(),
         DocblockFactory.Make(),
         CommentFactory.Make()
         );
 }
        public void TestItAddsNdbData()
        {
            RunParserOnLines(new List <string>(new[] { "CDF 388.500 N050.57.00.000 W001.21.24.490;comment" }));

            Ndb result = sectorElementCollection.Ndbs[0];

            Assert.Equal("CDF", result.Identifier);
            Assert.Equal("388.500", result.Frequency);
            Assert.Equal(new Coordinate("N050.57.00.000", "W001.21.24.490"), result.Coordinate);
            AssertExpectedMetadata(result);
        }
        public void TestItReturnsElementsInOrder()
        {
            Ndb first  = NdbFactory.Make("EX");
            Ndb second = NdbFactory.Make("BRI");
            Ndb third  = NdbFactory.Make("OF");

            sectorElements.Add(first);
            sectorElements.Add(second);
            sectorElements.Add(third);

            IEnumerable <ICompilableElementProvider> expected = new List <ICompilableElementProvider>()
            {
                second,
                first,
                third
            };

            AssertCollectedItems(expected);
        }