public static IEnumerable <object[]> AtLeastOneArgumentNullOrDefault() { var allData = new List <object[]> { new object[] { null, ValueArgument.Filled() }, new object[] { new ReferenceArgument(), ValueArgument.Default() }, new object[] { null, ValueArgument.Default() }, }; return(allData); }
public void MethodCallWithOnlyValueTypes_WithAllArgumentsHaveValue_DoesNotThrow() { var testModel = new TestModel(); testModel.Invoking(it => it.DefaultStructCheckOnMethod(ValueArgument.Filled(), ValueArgument.Filled(), null)).Should().NotThrow(); }
public void ConstructorCallWithOnlyValueTypes_WithAllArgumentsHaveValue_DoesNotThrow() { this.Invoking(_ => new TestModel(ValueArgument.Filled(), ValueArgument.Filled(), null)).Should().NotThrow(); }