public void MissingServiceThrowsException() { var attribute = new InjectDataAttribute(); var method = typeof(XunitTestsWithConfigureMethod).GetMethod("MethodWithMissingService"); Assert.Throws<InvalidOperationException>(() => attribute.GetData(method)); }
public void MissingServiceThrowsException() { var attribute = new InjectDataAttribute(); var method = typeof(XunitTestsWithConfigureMethod).GetMethod("MethodWithMissingService"); Assert.Throws <InvalidOperationException>(() => attribute.GetData(method, new Type[] { typeof(int) })); }
public void MissingDependencyThrowsException() { var attribute = new InjectDataAttribute(); var method = typeof(XunitTestsWithMissingDependencies).GetMethod("MethodWithMissingDependency"); Assert.Throws <InvalidOperationException>(() => attribute.GetData(method)); }
public void MissingDependencyThrowsException() { var attribute = new InjectDataAttribute(); var method = typeof(XunitTestsWithMissingDependencies).GetMethod("MethodWithMissingDependency"); Assert.Throws<InvalidOperationException>(() => attribute.GetData(method)); }