From b73f0e98663ae3312192840b4e7a71be12417edc Mon Sep 17 00:00:00 2001 From: ben_pollard Date: Tue, 30 Jan 2024 21:36:04 +0000 Subject: [PATCH] Removed whitespace from test --- .../Conversations/Conversation_Tests.cs | 44 +------------------ 1 file changed, 1 insertion(+), 43 deletions(-) diff --git a/BP.AdventureFramework.Tests/Conversations/Conversation_Tests.cs b/BP.AdventureFramework.Tests/Conversations/Conversation_Tests.cs index 29c67d0f..93d3f7d6 100644 --- a/BP.AdventureFramework.Tests/Conversations/Conversation_Tests.cs +++ b/BP.AdventureFramework.Tests/Conversations/Conversation_Tests.cs @@ -1,9 +1,7 @@ -using BP.AdventureFramework.Assets; -using BP.AdventureFramework.Assets.Characters; +using BP.AdventureFramework.Assets.Characters; using BP.AdventureFramework.Assets.Interaction; using BP.AdventureFramework.Conversations; using BP.AdventureFramework.Conversations.Instructions; -using BP.AdventureFramework.Extensions; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace BP.AdventureFramework.Tests.Conversations @@ -127,46 +125,6 @@ public void GivenCurrentParagraphWithResponse_WhenRespond_ThenReactionIsInternal var result = npc.Conversation.Respond(response, game); - - - const string currency = "$"; - - var player = new PlayableCharacter("Player", string.Empty); - player.Attributes.Add(currency, 10); - - var trader = new NonPlayableCharacter("Trader", string.Empty); - var spade = new Item("Spade", string.Empty); - trader.AcquireItem(spade); - - trader.Conversation = new Conversation( - new Paragraph("What will you buy?") - { - Responses = - [ - new Response("Spade", new ByCallback(() => - player.Attributes.GetValue(currency) >= 5 - ? new ToName("BoughtSpade") - : new ToName("NotEnough"))), - new Response("Nothing", new Last()) - ] - }, - new Paragraph("Here it is.", _ => - { - player.Attributes.Subtract(currency, 5); - trader.Attributes.Add(currency, 5); - trader.Give(spade, player); - }, new GoTo(0), "BoughtSpade"), - new Paragraph("You don't have enough money.", "NotEnough"), - new Paragraph("Fine.") - ); - - - - - - - - Assert.AreEqual(ReactionResult.Internal, result.Result); } }