public void ShouldNotUseFrozenInlineDataWhenGeneratingMoqParameter([Frozen] string stringParam, TestClassWithTwoInterfaceDependencies generatedParameter) { // Arrange // Act // Assert Assert.AreNotEqual("hello", generatedParameter.StringProperty); }
public void FrozenAttributeAppliedToTestParameterShouldUseThatInstanceForAllGeneratedInstancesOfThatType([Frozen] ITestInterface singleton, TestClassWithTwoInterfaceDependencies sut) { // Arrange // Act // Assert Assert.AreSame(singleton, sut.Property1); Assert.AreSame(singleton, sut.Property2); }