public void DefaultActionValue_Clone_NoOverrides() { int location = 10; G groupState = Mock.Of <G>(); DefaultActionValue <G> sut = new DefaultActionValue <G>(groupState, location); IActionValue <G> result = sut.Clone(); Assert.Equal(location, result.Location); Assert.Equal(groupState, result.GroupState); }
public void DefaultValueProvider_GetAction() { int location = 20; G groupState = Mock.Of <G>(); DefaultValueProvider <G> sut = new DefaultValueProvider <G>(); IActionValue <G> result = sut.GetAction(groupState, location); Assert.Equal(location, result.Location); Assert.Equal(groupState, result.GroupState); }