示例#1
0
 public TestCaseSignature(IEnumerable <ITestCaseCell> cells, MethodArgType type)
 {
     foreach (var cell in cells)
     {
         this.arguments.Add(MethodArgument.Create(cell, type));
     }
 }
        public void MethodArgTest(
            object value,
            MethodArgType argumentType,
            Type expectedType,
            object expected,
            string keyword)
        {
            var dependency = TestDouble.For <ITestCaseCell>().Stub(x => x.Value, value);
            var sut        = MethodArgument.Create(dependency, argumentType);

            sut.Type.Should().Be(expectedType, "SUT type was not expected type.");
            sut.Value.Should().Be(expected, "SUT values was not expected value.");
            sut.CSharpType.Should().Be(keyword);
        }