Exemple #1
0
        public void Blade_Is_Initialized_When_Initialized_Is_Called()
        {
            var blade = new MockBlade();
            blade.Initialize(null);

            Assert.IsTrue(blade.IsInitialized);
        }
Exemple #2
0
        public void Blade_Is_Disposed_When_No_Longer_Used()
        {
            var blade = new MockBlade();
            blade.Dispose();

            Assert.IsTrue(blade.IsDisposed);
        }
Exemple #3
0
        public void Blade_Is_Disposed_When_No_Longer_Used()
        {
            var blade = new MockBlade();

            blade.Dispose();

            Assert.IsTrue(blade.IsDisposed);
        }
Exemple #4
0
        public void Blade_Is_Initialized_When_Initialized_Is_Called()
        {
            var blade = new MockBlade();

            blade.Initialize(null);

            Assert.IsTrue(blade.IsInitialized);
        }
Exemple #5
0
        public void Blade_Spins_When_Spin_Is_Called() {
            var blade = new MockBlade();
            var context = MockRepository.GenerateMock<IRotorContext>();

            blade.Spin(context);

            Assert.IsTrue(blade.HasSpunned);
        }
Exemple #6
0
        public void Blade_Spins_When_Spin_Is_Called()
        {
            var blade   = new MockBlade();
            var context = MockRepository.GenerateMock <IRotorContext>();

            blade.Spin(context);

            Assert.IsTrue(blade.HasSpunned);
        }
        public void Can_Add_And_Remove_Valid_Blade_To_List() {
            Blade blade = new MockBlade();

            var list = new BladeList {blade};
            Assert.IsNotEmpty(list);

            list.Remove(blade);
            Assert.IsEmpty(list);
        }
Exemple #8
0
        public void Can_Add_And_Remove_Valid_Blade_To_List()
        {
            Blade blade = new MockBlade();

            var list = new BladeList {
                blade
            };

            Assert.IsNotEmpty(list);

            list.Remove(blade);
            Assert.IsEmpty(list);
        }
Exemple #9
0
        public void Can_Create_Valid_Instance()
        {
            var blade = new MockBlade();

            Assert.IsNotNull(blade);
        }
Exemple #10
0
        public void Blade_Throws_Exception_When_Initialized_Is_Called_With_Null_RotorContext()
        {
            var blade = new MockBlade();

            blade.Spin(null);
        }
Exemple #11
0
 public void Can_Create_Valid_Instance() {
     var blade = new MockBlade();
     Assert.IsNotNull(blade);
 }
Exemple #12
0
        public void Blade_Throws_Exception_When_Initialized_Is_Called_With_Null_RotorContext() {
            var blade = new MockBlade();

            blade.Spin(null);
        }