Skip to content

Commit

Permalink
rename App.Handler to App.That (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymh199478 authored Jun 15, 2019
1 parent c096ecb commit 517122d
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 122 deletions.
4 changes: 2 additions & 2 deletions src/CatLib.Core.Tests/CatLib/ApplicationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public void TestTerminateRegisterProvider()
public void TestTerminate()
{
var app = new Application();
var oldApp = App.Handler;
var oldApp = App.That;
var num = 0;
oldApp.Make<IEventDispatcher>()
.AddListener<BeforeTerminateEventArgs>((args) =>
Expand All @@ -262,7 +262,7 @@ public void TestTerminate()
Assert.AreEqual(1, num++);
});
App.Terminate();
Assert.AreEqual(null, App.Handler);
Assert.AreEqual(null, App.That);
Assert.AreEqual(2, num);
}

Expand Down
2 changes: 1 addition & 1 deletion src/CatLib.Core.Tests/Container/MethodContainerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public void TestFlush()
var bind1 = App.BindMethod("Helloworld.Func1", cls);
var bind2 = App.BindMethod("Helloworld.Func2", cls);

App.Handler.Flush();
App.That.Flush();

ExceptionAssert.Throws<RuntimeException>(() =>
{
Expand Down
Loading

0 comments on commit 517122d

Please sign in to comment.