public void Equals_ResourceProviderWithDifferentProductionNumbers_ReturnsFalse() { var r1 = new OldResourceProvider(ResourceTypes.Brick, 2); var r2 = new OldResourceProvider(ResourceTypes.Brick, 3); r1.Equals(r2).ShouldBeFalse(); }
public void Equals_ResourceProviderWithDifferentResourceTypes_ReturnsFalse() { var r1 = new OldResourceProvider(ResourceTypes.Brick, 2); var r2 = new OldResourceProvider(ResourceTypes.Grain, 2); r1.Equals(r2).ShouldBeFalse(); }
public void Equals_ParameterIsSame_Returnstrue() { var r1 = new OldResourceProvider(ResourceTypes.Brick, 2); var r2 = r1; r1.Equals(r2).ShouldBeTrue(); }
public void Equals_ResourceProviderWithSameResourceTypeAndProductionNumbers_ReturnsTrue() { var r1 = new OldResourceProvider(ResourceTypes.Brick, 2); var r2 = new OldResourceProvider(ResourceTypes.Brick, 2); r1.Equals(r2).ShouldBeTrue(); }
public void Equals_ParameterIsNull_ReturnsFalse() { var r1 = new OldResourceProvider(ResourceTypes.Brick, 2); r1.Equals(null).ShouldBeFalse(); }
public void Equals_ParameterIsOfDifferentType_ReturnsFalse() { var r1 = new OldResourceProvider(ResourceTypes.Brick, 2); r1.Equals(4).ShouldBeFalse(); // Will box value type. }