public static AndConstraint<BooleanAssertions> NotBeDefault( this BooleanAssertions assertions, string because = "", params object[] reasonArgs ) { Execute.Assertion .BecauseOf( because, reasonArgs ) .ForCondition( !IsDefault( assertions.Subject ) ) .FailWith( "Expected {context:object} to not be default{reason}, but found {0}.", assertions.Subject ); return new AndConstraint<BooleanAssertions>( assertions ); }
private TryAssertions(Try <TSuccess> @try) { this.@try = @try; this.boolean = new BooleanAssertions(@try); }