Skip to content

Instantly share code, notes, and snippets.

@miklund
Created January 9, 2016 21:28
Show Gist options
  • Save miklund/81be4e1bfd6200ee60b1 to your computer and use it in GitHub Desktop.
Save miklund/81be4e1bfd6200ee60b1 to your computer and use it in GitHub Desktop.
2011-10-29 Coverage is a broken metric
# Title: Coverage is a broken metric
# Author: Mikael Lundin
# Link: http://blog.mikaellundin.name/2011/10/29/coverage-is-a-broken-metric.html
public double Divide(int a, int b)
{
return a / b;
}
[Fact]
public void DivideTest()
{
Assert.Equal(2, this.Divide(4, 2));
}
public bool PathExists(string targetPath)
{
return Directory.Exists(targetPath);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment