Download Test Driven .NET Development with FitNesse

Transcript
Source code
4
5
6
7
8
9
10
11
12
13
14
15
namespace info.fitnesse.sut
{
public class LinkValidityCheck:fit.ColumnFixture
{
public LinkValidityCheck()
{
SetSystemUnderTest(new Link());
}
public String comment;
}
}
domain/TargetObject.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;
using System.Collections.Generic;
using System.Text;
namespace info.fitnesse.to
{
public class LinkValidityCheck:fit.ColumnFixture
{
Link l = new Link();
public override Object GetTargetObject()
{
return l;
}
}
}
extended/CurrencyParser.cs
1
using fitSharp.Fit.Operators;
2
using fitSharp.Machine.Engine;
3
using fitSharp.Fit.Model;
4
using fitSharp.Machine.Model;
5
using System;
6
7
namespace extended
8
{
9
public class CurrencyParser: CellOperator, ParseOperator<Cell>
10
{
11
12
public bool CanParse(Type type, TypedValue instance, Tree<Cell>
parameters)
232