void DefaulBaseValue() { var moq = new Mock <IPropertyType>(); var sut = new APropertyUser(moq.Object, 0); Assert.True(sut.CompareBase()); }
void SetBaseValue() { var moq = new Mock <IPropertyType>(); var sut = new APropertyUser(moq.Object, 42); moq.Setup(x => x.BaseTypeProperty).Returns(42); Assert.True(sut.CompareBase()); }
void PropertyIsGet() { var moq = new Mock <IPropertyType>(); var sut = new APropertyUser(moq.Object, 42); var unused = sut.CompareBase(); moq.VerifyGet(x => x.BaseTypeProperty, Times.Once); }