diff --git a/Advanced Software Engineering/Advanced Software Engineering Tests/Advanced Software Engineering Tests.xml b/Advanced Software Engineering/Advanced Software Engineering Tests/Advanced Software Engineering Tests.xml index 985114a..a9632f5 100644 --- a/Advanced Software Engineering/Advanced Software Engineering Tests/Advanced Software Engineering Tests.xml +++ b/Advanced Software Engineering/Advanced Software Engineering Tests/Advanced Software Engineering Tests.xml @@ -15,7 +15,7 @@ - moveto - drawto - line - - shape + - rp Current todo list: - square - rectangle @@ -87,6 +87,11 @@ tests the "quadrilateral" command using . See . + + + Tests the "circle" command. See . + + tests the "triangle" command. See . @@ -104,7 +109,42 @@ - tests the + tests the "clear" command. See . + + + + + Tests the "reset" command. See + + + + + Tests the "resetpen" command. See . + + + + + Tests the command "pen". See + + + + + Tests the command "fill". See . + + + + + Tests the "if" command. It hasn't been implemented yet. + + + + + Tests the "def" command. It hasn't been implemented yet. + + + + + Tests the "int" declaration and assignment. It hasn't been implemented yet. @@ -123,5 +163,80 @@ resource lookups using this strongly typed resource class. + + + This class tests methods and some methods. It uses a combination of manual and random tests. + + + + + Random strip spaces test + + + + + Manual test + + + + + Manual test + + + + + Random test. + + + + + Random test. + + + + + Random test. + + + + + Random test. + + + + + Manual test. + + + + + Manual test. + + + + + Manual test. + + + + + Manual test. + + + + + Manual test. + + + + + Manual test. + + + + + Random test. + + diff --git a/Advanced Software Engineering/Advanced Software Engineering Tests/CommandTester.cs b/Advanced Software Engineering/Advanced Software Engineering Tests/CommandTester.cs index 88b2f93..ae98c1d 100644 --- a/Advanced Software Engineering/Advanced Software Engineering Tests/CommandTester.cs +++ b/Advanced Software Engineering/Advanced Software Engineering Tests/CommandTester.cs @@ -406,7 +406,7 @@ namespace Advanced_Software_Engineering_Tests { string input = "pen red"; Verb verb = VerbFactory.MakeVerb(null, input); string verbDesc = verb.GetDescription(); - string correctDesc = "Set pen color to: red"; + string correctDesc = "Set pen color to: Color [Red]"; Assert.AreEqual(correctDesc, verbDesc); } @@ -419,7 +419,7 @@ namespace Advanced_Software_Engineering_Tests { string input = "fill pink"; Verb verb = VerbFactory.MakeVerb(null, input); string verbDesc = verb.GetDescription(); - string correctDesc = "Set fill color to: pink"; + string correctDesc = "Set fill color to: Color [Pink]"; Assert.AreEqual(correctDesc, verbDesc); } diff --git a/Advanced Software Engineering/Advanced Software Engineering/Verbs/DrawingVerbs/FillColor.cs b/Advanced Software Engineering/Advanced Software Engineering/Verbs/DrawingVerbs/FillColor.cs index da7d2b6..5f5df1a 100644 --- a/Advanced Software Engineering/Advanced Software Engineering/Verbs/DrawingVerbs/FillColor.cs +++ b/Advanced Software Engineering/Advanced Software Engineering/Verbs/DrawingVerbs/FillColor.cs @@ -37,7 +37,7 @@ namespace Advanced_Software_Engineering.Verbs.DrawingVerbs { /// /// Description of the fill color public string GetDescription() { - return "Set fill color to " + color.ToString(); + return "Set fill color to: " + color.ToString(); } } diff --git a/Advanced Software Engineering/Advanced Software Engineering/Windows/CommandHelp.cs b/Advanced Software Engineering/Advanced Software Engineering/Windows/CommandHelp.cs index 8df409d..491cf97 100644 --- a/Advanced Software Engineering/Advanced Software Engineering/Windows/CommandHelp.cs +++ b/Advanced Software Engineering/Advanced Software Engineering/Windows/CommandHelp.cs @@ -1,7 +1,13 @@ using System.Windows.Forms; namespace Advanced_Software_Engineering { + /// + /// This class is resposible for the command help window. The command help window shows help for the commands. + /// public partial class CommandHelp : Form { + /// + /// Initilize CommandHelp. + /// public CommandHelp() { InitializeComponent(); }