public void Should_ConstructMatrixProvider_ForStandardInput() { //arrange int dimensions = 2; IJsonSerializationProvider jsonSerializationProvider = A.Fake <IJsonSerializationProvider>(); //act IMatrixProvider matrixProvider = new MatrixProvider(jsonSerializationProvider, dimensions); //assert matrixProvider.GetValue(0, 0).Should().Be(2); matrixProvider.GetValue(0, 1).Should().Be(0); matrixProvider.GetValue(1, 0).Should().Be(0); matrixProvider.GetValue(1, 1).Should().Be(2); }
public void Should_GetValue_ForStandardInput() { //arrange int dimensions = 2; double expectedOutput = 2; IJsonSerializationProvider jsonSerializationProvider = A.Fake <IJsonSerializationProvider>(); IMatrixProvider matrixProvider = new MatrixProvider(jsonSerializationProvider, dimensions); //act double actualOutput = matrixProvider.GetValue(0, 0); //assert actualOutput.Should().Be(expectedOutput); }