Exemplo n.º 1
0
            public void Collisions_callContructor_DefaultConstructorListIsEmpty()
            {
                //arrange and act
                CollisionCollection uut = new CollisionCollection();

                //assert
                Assert.That(uut.Collisions.Count, Is.Zero);
            }
Exemplo n.º 2
0
            public void Collisions_addMultipleFlights_ListConstructorListNotEmpty()
            {
                //arrange
                TransponderData dummyData     = new TransponderData("ABC123", 5000, 5000, 5000, DateTime.Now);
                Flight          flightA       = new Flight(dummyData);
                Flight          flightB       = new Flight(dummyData);
                Collision       testCollision = new Collision(flightA, flightB);

                List <Collision> testList = new List <Collision>();

                testList.Add(testCollision);
                testList.Add(testCollision);
                testList.Add(testCollision);

                //act
                CollisionCollection uut = new CollisionCollection(testList);

                //assert
                Assert.That(uut.Collisions.Count, Is.GreaterThan(0));
            }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PanelWrapper"/> class.
 /// </summary>
 public PanelWrapper()
 {
     this.collisionCollection     = new CollisionCollection();
     this.seamedElementCollection = new SeamedElementCollection();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PanelWrapper"/> class.
 /// </summary>
 public PanelWrapper()
 {
     this.collisionCollection = new CollisionCollection();
     this.seamedElementCollection = new SeamedElementCollection();
 }