// Triangles.cs, by Josh Moyer // // Spec: // Write a function that receives three integer inputs for the lengths of // the sides of a triangle and returns one of four values to determine the // triangle type (1=scalene, 2=isosceles, 3=equilateral, 4=error). Generate // test cases for the function assuming another developer coded the function using System; namespace Triangles { class Triangles { static void Main(string[] args) { ushort result; ushort[,] testcases = new ushort[,] { {4,0,1,1}, {4,1,0,1}, {4,1,1,0}, {4,0,65535,65535}, {4,65535,0,65535}, {4,65535,65535,0}, {3,1,1,1}, {3,65535,65535,65535}, {2,1,1,65535}, {2,1,65535,1}, {2,65535,1,1}, {2,65535,65535,1}, {2,65535,1,65535}, {2,1,65535,65535}, {1,1,32767,65535}, {1,32767,65535,1}, {1,65535,1,32767}, {1,1,65535,32767}, {1,65535,32767,1}, {1,32767,1,65535} }; for (ushort i=0; i