Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi Steven! Could you please update the original repo with these nice commits. #21

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ In addition to this, TinyIoC's "simplified inclusion" makes it useful for provid
### Key Features ###

* Simple inclusion - just add the CS file (or VB file coming soon!) and off you go.
* Wide platform support - actively tested on Windows, Mono, MonoTouch, PocketPC and Windows Phone 7. Also works just fine on MonoDroid.
* Wide platform support - actively tested on Windows (including Windows 8 WinRT), Mono, MonoTouch, PocketPC and Windows Phone 7. Also works just fine on MonoDroid.
* Simple API for Register, Resolve, CanResolve and TryResolve.
* Supports constructor injection and property injection. Constructors are selected automatically but can be overridden using a "fluent" API.
* Lifetime management - including singletons, multi-instance and ASP.Net per-request singletons.
Expand Down
8 changes: 2 additions & 6 deletions src/TinyIoC.Tests/TinyIoCTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1023,14 +1023,10 @@ public void Register_SingletonWithWeakReference_Throws()
}

[TestMethod]
[ExpectedException(typeof(TinyIoCRegistrationException))]
public void Register_FactoryToSingletonFluent_ThrowsException()
public void Register_FactoryToSingletonFluent_Registers()
{
var container = UtilityMethods.GetContainer();
container.Register<TestClassDefaultCtor>((c, p) => new TestClassDefaultCtor()).AsSingleton();

// Should have thrown by now
Assert.IsTrue(false);
container.Register((c, p) => new TestClassDefaultCtor()).AsSingleton();
}

[TestMethod]
Expand Down
Loading