Created
April 21, 2017 06:50
-
-
Save yuta-kaseda/1acd9571a6c7db4f8a64a72d00b3195e to your computer and use it in GitHub Desktop.
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
Container.Bind<BindClass>().AsSingle(); | |
var res1 = Container.Resolve<BindClass>(); | |
Container.Unbind<BindClass>(); | |
Container.Bind<BindClass>().AsSingle(); | |
var res2 = Container.Resolve<BindClass>(); | |
//trueが返ってくる(Unbindしてるのに同じインスタンス!!!!) | |
Assert.True(res1.GetHashCode() == res2.GetHashCode()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment