Ejemplo n.º 1
0
            public void Does_Not_Throw_On_Valid_Argument()
            {
                var myValidator = new Validator();

                ExtendedAssert.DoesNotThrow(() => myValidator.VerifyNotNullOrEmpty("a"));
            }
Ejemplo n.º 2
0
 public void Does_Not_Throw_On_Non_Null_Argument()
 {
     ExtendedAssert.DoesNotThrow(() => new Validator().VerifyNonNull(new Object()));
 }
Ejemplo n.º 3
0
 public void Does_Not_Throw_For_No_Arguments()
 {
     ExtendedAssert.DoesNotThrow(() => new Validator().VerifyParamsNonNull());
 }
Ejemplo n.º 4
0
 public void Does_Not_Throw_If_Nothing_Is_Null()
 {
     ExtendedAssert.DoesNotThrow(() => new Validator().VerifyNonNull("asdf"));
 }
Ejemplo n.º 5
0
 public void Does_Not_Throw_Exception_On_Remove()
 {
     ExtendedAssert.DoesNotThrow(() => new ArbitraryCommand(() => { }).CanExecuteChanged -= (o, e) => { });
 }
Ejemplo n.º 6
0
            public void Does_Not_Throw_Exception_When_Underlying_Project_Is_Null()
            {
                var newValue = "123321";

                ExtendedAssert.DoesNotThrow(() => Target.PublicationDirectory = newValue);
            }
Ejemplo n.º 7
0
            public void Does_Not_Throw_Exception_On_Value_Type()
            {
                var myStub = new Stub <int>();

                ExtendedAssert.DoesNotThrow(() => myStub.SetReturnsDefault <string>("asdf"));
            }
Ejemplo n.º 8
0
            public void Does_Not_Throw_Exception_When_Cleared_On_Empty()
            {
                var project = new Project();

                ExtendedAssert.DoesNotThrow(() => project.ClearModules());
            }