Permalink
Browse files

using c#

  • Loading branch information...
1 parent d81c378 commit 0c8f38673a1dfac8a13b223866c5488ddec19f6f @msuarz msuarz committed Jan 23, 2013
Showing with 15 additions and 1 deletion.
  1. +13 −0 docs/src/calculator.coffee
  2. +2 −1 package.json
View
@@ -0,0 +1,13 @@
+require 'csharp.js'
+using 'Math.Calculator'
+
+class @CalculatorFixture
+
+ constructor: ->
+ @calculator = new Calculator
+
+ '@x plus @y = @result': (x, y, result) ->
+ @calculator.Add(x, y).should.eql Number result
+
+ '@x minus @y = @result': (x, y, result) ->
+ @calculator.Subtract(x, y).should.eql Number result
View
@@ -21,7 +21,8 @@
"optimist": "latest"
},
"devDependencies": {
- "should": "latest"
+ "should": "latest",
+ "csharp.js": "latest"
},
"engines": {
"node": ">=0.6",

0 comments on commit 0c8f386

Please sign in to comment.