Skip to content

Instantly share code, notes, and snippets.

@alefcarlos
Created January 8, 2019 04:45
Show Gist options
  • Select an option

  • Save alefcarlos/1fe869a92b5b670daa96f3055fdaa24c to your computer and use it in GitHub Desktop.

Select an option

Save alefcarlos/1fe869a92b5b670daa96f3055fdaa24c to your computer and use it in GitHub Desktop.
[Fact]
public void MultpleOf_ShouldThrowExpcetionWhenYIsNegative()
{
Should.Throw<ArgumentException>(() =>
{
Helpers.IsMultipleOf(-3, 9);
});
}
[Fact]
public void MultpleOf_ShouldThrowExpcetionWhenXIsNegative()
{
Should.Throw<ArgumentException>(() =>
{
Helpers.IsMultipleOf(3, -9);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment