public BitmapComparer(CompareOptions options = null) { if (options == null) { options = new CompareOptions(); } Initialize(options); BitmapAnalyzer = BitmapAnalyzerFactory.Create(AnalyzerType, JustNoticeableDifference); Labeler = LabelerFactory.Create(LabelerType, DetectionPadding); BoundingBoxIdentifier = BoundingBoxIdentifierFactory.Create(BoundingBoxMode, BoundingBoxPadding); }
public void FactoryCreatesMultipleBoundingBoxIdentifier() { var target = BoundingBoxIdentifierFactory.Create(BoundingBoxModes.Multiple, 0); Assert.IsInstanceOf(typeof(MultipleBoundingBoxIdentifier), target); }
public void FactoryCreatesMultipleBoundingBoxIdentifier() { var target = BoundingBoxIdentifierFactory.Create(BoundingBoxModes.Multiple, 0); target.ShouldBeOfType <MultipleBoundingBoxIdentifier>(); }
public void FactoryThrowsWithInvalidType() { BoundingBoxIdentifierFactory.Create((BoundingBoxModes)100, 0); }
public void FactoryThrowsWithInvalidType() { Should.Throw <ArgumentException>(() => BoundingBoxIdentifierFactory.Create((BoundingBoxModes)100, 0)); }