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
public class TestableController : UIViewController | |
{ | |
public TestableController () | |
{ | |
} | |
public int GetTotal(int first, int second) | |
{ | |
return first + second; | |
} |
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
namespace Tdd.Mobile.Android | |
{ | |
public class TestableController : Fragment | |
{ | |
protected override void OnCreate (Bundle savedInstanceState) | |
{ | |
base.OnCreate (savedInstanceState); | |
} | |
public int GetTotal(int first, int second) |
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
[TestFixture] | |
public class TestableControllerTest | |
{ | |
[Test] | |
public void GetTotalTest() | |
{ | |
// arrange | |
var controller = new TestableController (); | |
// act |
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
[TestFixture] | |
public class TestableControllerTest | |
{ | |
[Test] | |
public void GetTotalTest() | |
{ | |
// arrange | |
var controller = new TestableController (); | |
// act |
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 Android.Content; | |
using Android.Graphics; | |
using Android.Views; | |
namespace MyApp.Views | |
{ | |
public class CaptureSignatureView : View | |
{ | |
public CaptureSignatureView(Context c, SignatureData signatureData) : base(c) |