コード例 #1
0
        public void GetDescription_should_render_method_name_and_empty_arguments_list_when_call_has_no_arguments()
        {
            // Arrange
            var call = FakeCall.Create <object>("GetType");

            // Act
            var description = call.GetDescription();

            // Assert
            description.Should().Be("System.Object.GetType()");
        }
コード例 #2
0
 private static FakeCall CreateFakeCallToFooDotBar(object argument1, object argument2)
 {
     return(FakeCall.Create <IFoo>("Bar", new[] { typeof(object), typeof(object) }, new[] { argument1, argument2 }));
 }
コード例 #3
0
 private static FakeCall CreateFakeCallToFooDotBar(object?argument1, object argument2) =>
 FakeCall.Create <IFoo>(x => x.Bar(argument1, argument2));