#develop (short for SharpDevelop) is a free IDE for .NET programming languages.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
1.0 KiB

// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using ICSharpCode.NRefactory.TypeSystem;
using ICSharpCode.SharpDevelop.Widgets;
namespace ICSharpCode.UnitTesting
{
/// <summary>
/// Represents a member that can be tested.
/// </summary>
public class TestMember : ViewModelBase
{
IUnresolvedMethod method;
public IUnresolvedMethod Method {
get { return method; }
}
public TestMember(IUnresolvedMethod method)
{
if (method == null)
throw new ArgumentNullException("method");
this.method = method;
}
TestResultType testResult;
public TestResultType TestResult {
get { return testResult; }
set {
if (testResult != value) {
testResult = value;
OnPropertyChanged();
}
}
}
public override string ToString()
{
return string.Format("[TestMember Method={0}, TestResult={1}]", method, testResult);
}
}
}