public void TestBoolState() { var input = new CustomContract.BoolInput { BoolValue = true }; var output = Contract.TestBoolState(input); output.BoolValue.ShouldBeTrue(); input.BoolValue = false; output = Contract.TestBoolState(input); output.BoolValue.ShouldBeFalse(); }
public void TestReadonlyState() { var firstInput = new CustomContract.BoolInput { BoolValue = true }; var firstOutput = Contract.TestReadonlyState(firstInput); firstOutput.BoolValue.ShouldBeTrue(); var secondInput = new CustomContract.BoolInput { BoolValue = false }; var secondOutput = Contract.TestReadonlyState(secondInput); // Still true secondOutput.BoolValue.ShouldBeTrue(); }