Skip to content

Commit 9732559

Browse files
committed
#3 Add a sample test
1 parent cb68de9 commit 9732559

File tree

1 file changed

+12
-6
lines changed
  • src/FluentAssertions.Ioc.Ninject.SampleTests

1 file changed

+12
-6
lines changed

src/FluentAssertions.Ioc.Ninject.SampleTests/IocTests.cs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
6-
using FluentAssertions.Ioc.Ninject.Sample;
1+
using FluentAssertions.Ioc.Ninject.Sample;
2+
using FluentAssertions.Ioc.Samples.Core;
73
using FluentAssertions.Ioc.Samples.Interfaces;
84
using Ninject;
95
using Ninject.Modules;
@@ -37,6 +33,16 @@ public void Providers_can_be_resolved_with_at_least_one_instance()
3733
// Assert
3834
kernel.Should().Resolve(interfaces).WithAtLeastOneInstance();
3935
}
36+
37+
[Test]
38+
public void SampleService_resolves_to_expected_implementation()
39+
{
40+
// Arrange
41+
var kernel = GetKernel();
42+
43+
// Assert
44+
kernel.Should().Resolve<ISampleService>().To<SampleService>();
45+
}
4046

4147
private IKernel GetKernel()
4248
{

0 commit comments

Comments
 (0)