public void NormalizeAfterFinalization_InvalidFactor() { Relevance rel = new Relevance(8); rel.Finalize(16); Assert.Throws <ArgumentOutOfRangeException>(() => { rel.NormalizeAfterFinalization(-0.5F); }); }
public void NormalizeAfterFinalization_InvalidFactor() { Relevance rel = new Relevance(8); rel.Finalize(16); rel.NormalizeAfterFinalization(-0.5F); }
public void NormalizeAfterFinalization_BeforeFinalize() { Relevance sut = new Relevance(8); var ex = Assert.Throws <InvalidOperationException>(() => sut.NormalizeAfterFinalization(0.5F)); Assert.Equal("Normalization can be performed only after finalization.", ex.Message); }
public void NormalizeAfterFinalization() { Relevance rel = new Relevance(8); rel.Finalize(16); rel.NormalizeAfterFinalization(0.5F); Assert.AreEqual(25, rel.Value, 0.1, "Wrong value"); }
public void NormalizeAfterFinalization() { Relevance rel = new Relevance(8); rel.Finalize(16); rel.NormalizeAfterFinalization(0.5F); Assert.Equal(25, rel.Value, 1); }
public void NormalizeAfterFinalization_BeforeFinalize() { Relevance rel = new Relevance(8); rel.NormalizeAfterFinalization(0.5F); }
public void NormalizeAfterFinalization_BeforeFinalize() { Relevance rel = new Relevance(8); Assert.Throws <InvalidOperationException>(() => { rel.NormalizeAfterFinalization(0.5F); }); }