Skip to content
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