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 System.Linq; | |
using FsCheck; | |
using FsCheck.Fluent; | |
using NUnit.Framework; | |
using TechTalk.SpecFlow; | |
namespace FizzBuzzerSpecs | |
{ | |
[Binding] |
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 System.Collections.Generic; | |
using System.Linq; | |
using FsCheck.Fluent; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace FizzBuzzProperties | |
{ | |
[TestClass] | |
public class FizzBuzzProperties |
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 System.Collections.Generic; | |
using System.Linq; | |
using FsCheck.Fluent; | |
using NUnit.Framework; | |
namespace FizzBuzz | |
{ | |
[TestFixture] | |
public class FizzBuzzerTests |
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.Collections.Generic; | |
using System.Linq; | |
using NUnit.Framework; | |
namespace CoinChanger | |
{ | |
[TestFixture] | |
public class ChangerTests | |
{ | |
[TestCase(new int[]{}, 0, Result = new int[]{}, TestName="No coins for 0 cents")] |
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
<!DOCTYPE html> | |
<html ng-app="fizzbuzzApp"> | |
<head> | |
<script data-require="angular.js@*" data-semver="1.3.0-beta.5" src="https://code.angularjs.org/1.3.0-beta.5/angular.js"></script> | |
<link rel="stylesheet" href="style.css" /> | |
<script src="script.js"></script> | |
</head> | |
<body> |
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
var app = angular.module('coinChangerApp', []); | |
// based on http://snippetrepo.com/snippets/lodash-in-angularjs | |
app.factory('_', ['$window', | |
function($window) { | |
return $window._; | |
} | |
]); | |
app.controller('CoinChangerCtrl', ['$scope', '_', |
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
var a = "this is from a.js"; |
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
(->> (range) (rest) (filter even?) (take 2)) |
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
;;waterfall | |
(reduce + | |
(filter even? | |
(range 101))) | |
;;thrushy | |
(->> (range 101) (filter even?) (reduce +)) |
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 FsCheck.Fluent; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace FizzBuzz | |
{ | |
[TestClass] | |
public class FizzBuzzerTests | |
{ | |
[TestMethod] | |
public void GivenAnEvenNumber_ResultMustBeSelfAsString() |