Created
March 24, 2011 04:36
-
-
Save bforrest/884587 to your computer and use it in GitHub Desktop.
numbers kihon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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