Added a couple todos for commented out code that I can't remember why

This commit is contained in:
Scott Bilas 2018-11-21 15:50:01 +01:00
Родитель 0165b7d53b
Коммит 1e9caabdd2
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -110,6 +110,7 @@ namespace NSubstitute.Elevated.Tests
[Test]
public void ClassWithCtorParams_WhenMocked_ShouldThrow()
{
// TODO: why commented out?
// Should.Throw<MissingMethodException>(() => Substitute.For<ClassWithNoDefaultCtor>());
Should.Throw<SubstituteException>(() => Substitute.For<ClassWithNoDefaultCtor>("test"));
Should.Throw<SubstituteException>(() => Substitute.For<ClassWithNoDefaultCtor>(null, null));
@ -127,6 +128,7 @@ namespace NSubstitute.Elevated.Tests
var subNoCtor1 = Substitute.For<ClassWithNoDefaultCtorNoMethods>(null);
subNoCtor1.GetType().ShouldBe(typeof(ClassWithNoDefaultCtorNoMethods));
// TODO: why commented out?
// var subNoCtor2 = Substitute.For<ClassWithNoDefaultCtorNoMethods>("test"); TODO: This will cause an exception as ForPartsOf should be used. Maybe do that here instead?
// subNoCtor2.GetType().ShouldBe(typeof(ClassWithNoDefaultCtorNoMethods));