public void ShouldCreateInstance() { var factory = new MatrixFactory(); var matrix = factory.CreateConvolveMatrix(1); Assert.NotNull(matrix); Assert.IsType <ConvolveMatrix>(matrix); }
public void ShouldCreateInstance() { var factory = new MatrixFactory(); var matrix = factory.CreateConvolveMatrix(1); Assert.IsNotNull(matrix); Assert.IsInstanceOfType(matrix, typeof(ConvolveMatrix)); }
public void ShouldCreateInstanceWithValues() { var factory = new MatrixFactory(); var matrix = factory.CreateConvolveMatrix(1, 2); Assert.NotNull(matrix); Assert.IsType <ConvolveMatrix>(matrix); Assert.Equal(2, matrix.GetValue(0, 0)); }
public void ShouldCreateInstanceWithValues() { var factory = new MatrixFactory(); var matrix = factory.CreateConvolveMatrix(1, 2); Assert.IsNotNull(matrix); Assert.IsInstanceOfType(matrix, typeof(ConvolveMatrix)); Assert.AreEqual(2, matrix.GetValue(0, 0)); }