-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Starting to wire up "Add Else/Else If" buttons, but need to look at a…
…gain at design of notification. Add unit test project. git-svn-id: https://quest.svn.codeplex.com/svn/trunk@3933 4a90e977-6436-4932-9605-20e10c2b6fb3
- Loading branch information
1 parent
7fbc666
commit 41fc73a
Showing
19 changed files
with
359 additions
and
49 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -216,4 +216,5 @@ | |
cmdMoveUp.Enabled = enabled | ||
cmdMoveDown.Enabled = enabled | ||
End Sub | ||
|
||
End Class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
using System; | ||
using System.Text; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using AxeSoftware.Quest; | ||
|
||
namespace EditorControllerTests | ||
{ | ||
[TestClass] | ||
public class EditableScriptTests | ||
{ | ||
private EditorController m_controller; | ||
|
||
[TestInitialize] | ||
public void Init() | ||
{ | ||
m_controller = new EditorController(); | ||
m_controller.ClearTree += new EditorController.VoidHandler(m_controller_ClearTree); | ||
m_controller.BeginTreeUpdate += new EditorController.VoidHandler(m_controller_BeginTreeUpdate); | ||
m_controller.EndTreeUpdate += new EditorController.VoidHandler(m_controller_EndTreeUpdate); | ||
m_controller.AddedNode += new EditorController.AddedNodeHandler(m_controller_AddedNode); | ||
m_controller.Initialise(@"..\..\..\EditorControllerTests\test.aslx"); | ||
} | ||
|
||
void m_controller_ClearTree() | ||
{ | ||
} | ||
|
||
void m_controller_BeginTreeUpdate() | ||
{ | ||
} | ||
|
||
void m_controller_EndTreeUpdate() | ||
{ | ||
} | ||
|
||
void m_controller_AddedNode(string key, string text, string parent, System.Drawing.Color? foreColor, System.Drawing.Color? backColor) | ||
{ | ||
} | ||
|
||
[TestMethod] | ||
public void CreateScript() | ||
{ | ||
EditableScripts newScripts = m_controller.CreateNewEditableScripts("game", "somescript", "msg (\"\")"); | ||
Assert.IsTrue(newScripts.Scripts.Count() == 1); | ||
} | ||
} | ||
} |
Oops, something went wrong.