public void Create_NotAProperty_NoOp() { var subject = new NullableBuilder(); object notAProperty = typeof(int); var noOp = subject.Create(notAProperty, null); Assert.That(noOp, Is.InstanceOf <NoSpecimen>()); }
public void Create_NullableNotNull_NotNull() { var subject = new NullableBuilder(); PropertyInfo nullableNotNull = this.Property(nameof(NullableNotNull)); var notNull = subject.Create(nullableNotNull, null); Assert.That(notNull, Is.InstanceOf(nullableNotNull.PropertyType).And.Not.Null); }
public void Create_NullableNull_Null() { var subject = new NullableBuilder(); PropertyInfo nullableNull = this.Property(nameof(NullableNull)); var @null = subject.Create(nullableNull, null); Assert.That(@null, Is.Null); }
public void Create_NotNullable_NoOp() { var subject = new NullableBuilder(); PropertyInfo notNullable = this.Property(nameof(NotNullable)); var noOp = subject.Create(notNullable, null); Assert.That(noOp, Is.InstanceOf <NoSpecimen>()); }