Skip to content

Instantly share code, notes, and snippets.

@bforrest
Created March 24, 2011 04:36
Show Gist options
  • Select an option

  • Save bforrest/884587 to your computer and use it in GitHub Desktop.

Select an option

Save bforrest/884587 to your computer and use it in GitHub Desktop.
numbers kihon
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Squire.Framework;
namespace Squire
{
[TestClass]
public class NumbersKihon : NumbersKihonStructure
{
protected override int Return_The_Maximum_Value_Of_Int32()
{
return Int32.MaxValue;
}
protected override int Return_The_Minimum_Value_Of_Int32()
{
return Int32.MinValue;
}
protected override int Return_The_Remainder_Of_a_Divided_By_b(int a, int b)
{
return a%b;
}
protected override double Return_The_Maximum_Value_Of_Double()
{
return Double.MaxValue;
}
protected override double Return_The_Minimum_Value_Of_Double()
{
return Double.MinValue;
}
protected override bool Return_True_If_a_Is_Not_A_Number(double a)
{
return double.IsNaN(a);
}
protected override bool Return_True_If_a_Is_An_Infinity(double a)
{
return double.IsInfinity(a);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment