|
using BlueMarble.Genesis.Infrastructure.Converters;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Globalization;
namespace BlueMarble.Genesis.Infrastructure.Test.Converters
{
/// <summary>
///This is a test class for PercentConverterTest and is intended
///to contain all PercentConverterTest Unit Tests
///</summary>
[TestClass()]
public class PercentConverterTest
{
private TestContext testContextInstance;
/// <summary>
///Gets or sets the test context which provides
///information about and functionality for the current test run.
///</summary>
public TestContext TestContext
{
get
{
return testContextInstance;
}
set
{
testContextInstance = value;
}
}
#region Additional test attributes
//
//You can use the following additional attributes as you write your tests:
//
//Use ClassInitialize to run code before running the first test in the class
//[ClassInitialize()]
//public static void MyClassInitialize(TestContext testContext)
//{
//}
//
//Use ClassCleanup to run code after all tests in a class have run
//[ClassCleanup()]
//public static void MyClassCleanup()
//{
//}
//
//Use TestInitialize to run code before running each test
//[TestInitialize()]
//public void MyTestInitialize()
//{
//}
//
//Use TestCleanup to run code after each test has run
//[TestCleanup()]
//public void MyTestCleanup()
//{
//}
//
#endregion
/// <summary>
///A test for PercentConverter Constructor
///</summary>
[TestMethod()]
public void PercentConverterConstructorTest()
{
PercentConverter target = new PercentConverter();
Assert.Inconclusive("TODO: Implement code to verify target");
}
/// <summary>
///A test for Convert
///</summary>
[TestMethod()]
public void ConvertTest()
{
PercentConverter target = new PercentConverter(); // TODO: Initialize to an appropriate value
object value = null; // TODO: Initialize to an appropriate value
Type targetType = null; // TODO: Initialize to an appropriate value
object parameter = null; // TODO: Initialize to an appropriate value
CultureInfo culture = null; // TODO: Initialize to an appropriate value
object expected = null; // TODO: Initialize to an appropriate value
object actual;
actual = target.Convert(value, targetType, parameter, culture);
Assert.AreEqual(expected, actual);
Assert.Inconclusive("Verify the correctness of this test method.");
}
/// <summary>
///A test for ConvertBack
///</summary>
[TestMethod()]
public void ConvertBackTest()
{
PercentConverter target = new PercentConverter(); // TODO: Initialize to an appropriate value
object value = null; // TODO: Initialize to an appropriate value
Type targetType = null; // TODO: Initialize to an appropriate value
object parameter = null; // TODO: Initialize to an appropriate value
CultureInfo culture = null; // TODO: Initialize to an appropriate value
object expected = null; // TODO: Initialize to an appropriate value
object actual;
actual = target.ConvertBack(value, targetType, parameter, culture);
Assert.AreEqual(expected, actual);
Assert.Inconclusive("Verify the correctness of this test method.");
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.