This file contains 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 FluentAssertions; | |
using Microsoft.Practices.Unity; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace Sample | |
{ | |
[TestClass] | |
public class genericTest | |
{ |
This file contains 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 Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace Grades | |
{ | |
using CharacterGrade = Grade<char, int>; | |
using NumericGrade = Grade<int, int>; | |
[TestClass] | |
public class GradesTests | |
{ |
This file contains 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 Infosaurus.FSharpTests; | |
using Microsoft.FSharp.Core; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using System; | |
using System.Linq; | |
namespace Infosaurus | |
{ | |
//**** CSharp => FSharp function helpers |
This file contains 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
module Resources | |
[<Measure>] type Or | |
[<Measure>] type Bois | |
[<Measure>] type Pierre | |
type Resources = | |
{ Or : int<Or> | |
Bois : int<Bois> | |
Pierre : int<Pierre> } |
This file contains 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
public enum TypeRessource | |
{ | |
Or = 0, | |
Bois = 1, | |
Pierre = 2 | |
} | |
public static class Or | |
{ | |
// méthodes statiques de commodité d'utilisation des ressources |