public void Ca_ForNotUsedType() { Ca ca = Ca.For <FooCalculator>(); ca.Value.Should().Be(0); ca.References.Should().Be.Empty(); }
public void Ca_ForTypeThatIsReferencedByOtherTypes() { Ca ca = Ca.For <FooException>(); ca.Value.Should().Be(2); ca.References.Should().Have.SameValuesAs(new Type[] { typeof(TryToCatchFooException), typeof(FooCalculator) }); }
public void QuandoDesejoObterSeuAcoplamentoAferente() { resultingMetric = Ca.For(workingType); }