🩹 Suggest a fix
continuous-integration/drone/push Build is passing Details

TU_NumberDieFace
Alexis Drai 2 years ago
parent 583de4bb0b
commit 05ef14ccd4

@ -16,7 +16,7 @@ namespace Model.Dice.Faces
/// </summary>
protected abstract int Value { get; }
public abstract int GetPracticalValue();
public abstract object GetPracticalValue();
public override string ToString()
{

@ -14,7 +14,7 @@ namespace Model.Dice.Faces
Value = value;
}
public override int GetPracticalValue()
public override object GetPracticalValue()
{
return Value;
}

@ -19,11 +19,9 @@ namespace Tests.Model_UTs
NumberDieFace face;
int expected = 11;
//Act
face = new NumberDieFace(expected);
Object actuel = face.GetPracticalValue();
int actuel = (int)face.GetPracticalValue();
//Assert
Assert.Equal(expected, actuel);

Loading…
Cancel
Save