Class ScoreValueBehaviorTests
Additional behavioral tests for the ScoreValue value object.
Inherited Members
Namespace: Serenity.Score.Tests.Domain
Assembly: Tests.dll
Syntax
public class ScoreValueBehaviorTests
Constructors
ScoreValueBehaviorTests()
Declaration
public ScoreValueBehaviorTests()
Methods
Add_DoesNotMutateOriginal()
Declaration
public void Add_DoesNotMutateOriginal()
Add_NegativeDelta_Decreases()
Declaration
public void Add_NegativeDelta_Decreases()
Add_PreservesKind_Percentage()
Declaration
public void Add_PreservesKind_Percentage()
Default_HasZeroAmountAndIntegerKind()
Declaration
public void Default_HasZeroAmountAndIntegerKind()
Divide_PreservesKind()
Declaration
public void Divide_PreservesKind()
Equals_Object_Null_False()
Declaration
public void Equals_Object_Null_False()
GetHashCode_DifferentAmount_DiffersTypically()
Declaration
public void GetHashCode_DifferentAmount_DiffersTypically()
GetHashCode_DifferentKind_DiffersTypically()
Declaration
public void GetHashCode_DifferentKind_DiffersTypically()
Multiply_ByZero_ReturnsZeroAmount()
Declaration
public void Multiply_ByZero_ReturnsZeroAmount()
Multiply_PreservesKind()
Declaration
public void Multiply_PreservesKind()
Operations_Chain_AccumulateCorrectly()
Declaration
public void Operations_Chain_AccumulateCorrectly()
OperatorEquals_DifferentKind_False()
Declaration
public void OperatorEquals_DifferentKind_False()
OperatorNotEquals_Same_False()
Declaration
public void OperatorNotEquals_Same_False()
Subtract_PreservesKind()
Declaration
public void Subtract_PreservesKind()
ToString_ContainsKindName()
Declaration
public void ToString_ContainsKindName()
ToString_UsesCurrentCultureForAmount()
Declaration
public void ToString_UsesCurrentCultureForAmount()
WithAmount_DoesNotMutateOriginal()
Declaration
public void WithAmount_DoesNotMutateOriginal()
WithAmount_ReturnsNewAmountSameKind()
Declaration
public void WithAmount_ReturnsNewAmountSameKind()