Skip to content

Commit

Permalink
fixed test since enum difficulty was changed
Browse files Browse the repository at this point in the history
  • Loading branch information
darkfriend77 committed Nov 4, 2018
1 parent f42b860 commit 157eabb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions WoMFrameworkTest/Game/InteractionTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ public void InteractionSerialisation()
//string addParm = parm1.Substring(4, 4);

var adventure1 = new AdventureAction(AdventureType.TestRoom, DifficultyType.Challenging, 2);
Assert.Equal(0.01040003m, adventure1.GetValue1());
Assert.Equal(0.00001002m, adventure1.GetValue2());
Assert.Equal(0.01040004m, adventure1.GetValue1());
Assert.Equal(0.00002002m, adventure1.GetValue2());

var amount = adventure1.GetValue1();
var fee = adventure1.GetValue2();

var adventure2 = (AdventureAction) Interaction.GetInteraction(amount, fee);
Assert.Equal(0.01040003m, adventure2.GetValue1());
Assert.Equal(0.00001002m, adventure2.GetValue2());
Assert.Equal(0.01040004m, adventure2.GetValue1());
Assert.Equal(0.00002002m, adventure2.GetValue2());

//Console.WriteLine($"Value1: {adventure.CostType}");
//Console.WriteLine($"Value1: {adventure.InteractionType}");
Expand Down Expand Up @@ -56,7 +56,7 @@ public void AdventureActionInteraction()

Assert.Equal(InteractionType.Adventure, shift.Interaction.InteractionType);
Assert.Equal(AdventureType.TestRoom, ((AdventureAction)shift.Interaction).AdventureType);
Assert.Equal(DifficultyType.Challenging, ((AdventureAction)shift.Interaction).DifficultyType );
Assert.Equal(DifficultyType.Average, ((AdventureAction)shift.Interaction).DifficultyType );
Assert.Equal(2, ((AdventureAction)shift.Interaction).AveragePartyLevel);
}
}
Expand Down

0 comments on commit 157eabb

Please sign in to comment.