[Property("SPEC_URL", "-")]
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void ColumnDefinition_INIT()
+ public void ColumnDefinition_INIT()
{
/* TEST CODE */
var colDef = new ColumnDefinition();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void Width_READ_WRITE()
+ public void Width_READ_WRITE()
{
/* TEST CODE */
GridLength gridlenth = new GridLength(13.00);
Assert.AreEqual((double)(13.00), sColumnDefinition.Width.Value, "Set and get values are not equal.");
}
- public static void SizeChangedCallback(object sender, System.EventArgs e)
+ public void SizeChangedCallback(object sender, System.EventArgs e)
{
isSizeChanged = true;
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "EVL")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void SizeChanged_EVENT()
+ public void SizeChanged_EVENT()
{
/* TEST CODE */
isSizeChanged = false;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void ColumnDefinitionCollection_INIT()
+ public void ColumnDefinitionCollection_INIT()
{
/* TEST CODE */
var colDefCollection = new ColumnDefinitionCollection();
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
[Property("COVPARAM", "Action")]
- public static void Command_INIT_ACTION()
+ public void Command_INIT_ACTION()
{
/* TEST CODE */
var cmd = new Command(() => { });
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
[Property("COVPARAM", "Action<object>")]
- public static void Command_INIT_ACTION_OBJECT()
+ public void Command_INIT_ACTION_OBJECT()
{
/* TEST CODE */
string result = null;
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
[Property("COVPARAM", "Action<object>, Func<object, bool>")]
- public static void Command_INIT_ACTION_OBJECT_FUNC_BOOL()
+ public void Command_INIT_ACTION_OBJECT_FUNC_BOOL()
{
/* TEST CODE */
string result = null;
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Nguyen Van Tan, nguyen.vtan@samsung.com")]
[Property("COVPARAM", "Action, Func<bool>")]
- public static void Command_INIT_ACTION_FUNC_BOOL()
+ public void Command_INIT_ACTION_FUNC_BOOL()
{
/* TEST CODE */
string result = null;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void Constant_CHECK_RETURN_TYPE()
+ public void Constant_CHECK_RETURN_TYPE()
{
/* TEST CODE */
var constant = Constraint.Constant(12.00);
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void FromExpression_CHECK_RETURN_TYPE()
+ public void FromExpression_CHECK_RETURN_TYPE()
{
/* TEST CODE */
System.Linq.Expressions.Expression<Func<double>> expr = () => 5.0;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void RelativeToParent_CHECK_RETURN_TYPE()
+ public void RelativeToParent_CHECK_RETURN_TYPE()
{
/* TEST CODE */
var relativeToParent = Constraint.RelativeToParent(parent => parent.Height / 2);
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void RelativeToView_CHECK_RETURN_TYPE()
+ public void RelativeToView_CHECK_RETURN_TYPE()
{
/* TEST CODE */
var btn = new Button();
private ControlTemplate _controlTemplate;
[SetUp]
- public static void SetUp()
+ public void SetUp()
{
Console.WriteLine("TSControlTemplateTests --------------- Setup()");
}
[TearDown]
- public static void TearDown()
+ public void TearDown()
{
Console.WriteLine("TSControlTemplateTests --------------- TearDown()");
}
namespace Xamarin.Forms.Core.UnitTests
{
- //public class DataTemplateBindable
- //{
- // public DataTemplateBindable()
- // {
- // }
- //}
-
[TestFixture]
[Description("Xamarin.Forms.DataTemplate Tests")]
class DataTemplateTests
[TypeConverter(typeof(ToBarConverter))]
internal class Bar
{
-
}
internal class Baz
{
-
}
- internal class MockBindable
- : View
+ internal class MockBindable : View
{
public static readonly BindableProperty TextProperty = BindableProperty.Create<MockBindable, string>(
b => b.Text, "default", BindingMode.TwoWay);
return new Bar();
}
}
-
internal class ToBazConverter : TypeConverter
{
public override object ConvertFrom(System.Globalization.CultureInfo culture, object value)
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void DataTemplate_INIT()
+ public void DataTemplate_INIT()
{
/*TEST CODE*/
var dataTemplate = new DataTemplate();
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
[Property("COVPARAM", "System.Func<object>")]
- public static void DataTemplate_INIT_WITH_FUNC()
+ public void DataTemplate_INIT_WITH_FUNC()
{
/*TEST CODE*/
var dataTemplate = new DataTemplate(() => new MockBindable());
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
[Property("COVPARAM", "System.Type")]
- public static void DataTemplate_INIT_WITH_TYPE()
+ public void DataTemplate_INIT_WITH_TYPE()
{
/*TEST CODE*/
var dataTemplate = new DataTemplate(typeof(String));
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void DateChangedEventArgs_INIT()
+ public void DateChangedEventArgs_INIT()
{
/* TEST CODE */
var oldDate = new DateTime(11/02/2016);
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void NewDate_READ_ONLY()
+ public void NewDate_READ_ONLY()
{
/* TEST CODE */
var oldDate1 = new DateTime(11 / 02 / 2016);
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void OldDate_READ_ONLY()
+ public void OldDate_READ_ONLY()
{
/* TEST CODE */
var oldDate2 = new DateTime(11 / 02 / 2016);
public class DeviceStylesTests
{
[SetUp]
- public static void SetUp()
+ public void SetUp()
{
Console.WriteLine("DeviceStylesTests --------------- Setup()");
}
[TearDown]
- public static void TearDown()
+ public void TearDown()
{
Console.WriteLine("DeviceStylesTests --------------- TearDown()");
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void BodyStyleKey_DeviceStyles_READ()
+ public void BodyStyleKey_DeviceStyles_READ()
{
/* TEST CODE */
Label label = new Label
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void CaptionStyleKey_DeviceStyles_READ()
+ public void CaptionStyleKey_DeviceStyles_READ()
{
/* TEST CODE */
Label label = new Label
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void ListItemDetailTextStyleKey_DeviceStyles_READ()
+ public void ListItemDetailTextStyleKey_DeviceStyles_READ()
{
/* TEST CODE */
Label label = new Label
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void ListItemTextStyleKey_DeviceStyles_READ()
+ public void ListItemTextStyleKey_DeviceStyles_READ()
{
/* TEST CODE */
Label label = new Label
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void SubtitleStyleKey_DeviceStyles_READ()
+ public void SubtitleStyleKey_DeviceStyles_READ()
{
/* TEST CODE */
Label label = new Label
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void TitleStyleKey_DeviceStyles_READ()
+ public void TitleStyleKey_DeviceStyles_READ()
{
/* TEST CODE */
Label label = new Label
public class DeviceTests
{
[SetUp]
- public static void SetUp()
+ public void SetUp()
{
Console.WriteLine("DeviceTests --------------- Setup()");
}
[TearDown]
- public static void TearDown()
+ public void TearDown()
{
Console.WriteLine("DeviceTests --------------- TearDown()");
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Md.Elme Focruzzaman Razi , ef.razi@samsung.com")]
- public static void Idiom_PHONE_READ()
+ public void Idiom_PHONE_READ()
{
string profile;
Boolean is_mobile = false;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Md.Elme Focruzzaman Razi , ef.razi@samsung.com")]
- public static void Idiom_TV_READ()
+ public void Idiom_TV_READ()
{
string profile;
Boolean is_tv = false;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Md.Elme Focruzzaman Razi , ef.razi@samsung.com")]
- public static void OS_READ()
+ public void OS_READ()
{
/* TEST CODE */
var os = Device.OS;
[Property("AUTHOR", "Md.Elme Focruzzaman Razi , ef.razi@samsung.com")]
[Property("COVPARAM", "Xamarin.Forms.NamedSize, System.Type")]
- public static void GetNamedSize_WITH_TYPE_CHECK_RETURN()
+ public void GetNamedSize_WITH_TYPE_CHECK_RETURN()
{
/* TEST CODE */
Button btn = new Button()
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Md.Elme Focruzzaman Razi , ef.razi@samsung.com")]
[Property("COVPARAM", "Xamarin.Forms.NamedSize, Xamarin.Forms.Element")]
- public static void GetNamedSize_WITH_ELEMENT_CHECK_RETURN()
+ public void GetNamedSize_WITH_ELEMENT_CHECK_RETURN()
{
/* TEST CODE */
Element btn = new Button()
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Nguyen Van Tan , nguyen.vtan@samsung.com")]
- public static void OnPlatform_CHECK_STATUS()
+ public void OnPlatform_CHECK_STATUS()
{
/* TEST CODE */
int fonsize = 10;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Md.Elme Focruzzaman Razi , ef.razi@samsung.com")]
- public static void OnPlatform_GENERIC_CHECK_RETURN()
+ public void OnPlatform_GENERIC_CHECK_RETURN()
{
/* TEST CODE */
//Device.OS = TargetPlatform.WinPhone;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Md.Elme Focruzzaman Razi , ef.razi@samsung.com")]
- public async static Task StartTimer_CHECK_STATUS()
+ public async Task StartTimer_CHECK_STATUS()
{
var task = new TaskCompletionSource<int>();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void RuntimePlatform_Device_READ()
+ public void RuntimePlatform_Device_READ()
{
/* TEST CODE */
var device = Device.RuntimePlatform;
[Description("Xamarin.Forms.Element Tests")]
public class ElementTests
{
-
- public class TestElement
- : Element
+ public class TestElement : Element
{
public bool BindingContextChangedHapped { get; set; }
public bool ChildAddedHapped { get; set; }
get { return internalChildren; }
}
-
-
protected override void OnBindingContextChanged()
{
base.OnBindingContextChanged();
readonly ObservableCollection<Element> internalChildren = new ObservableCollection<Element>();
}
-
-
-
- private static TestElement _element;
- public static readonly BindableProperty ClassIdProperty = BindableProperty.Create("ClassId", typeof(string), typeof(View), null);
+ private TestElement _element;
+ public readonly BindableProperty ClassIdProperty = BindableProperty.Create("ClassId", typeof(string), typeof(View), null);
[SetUp]
- public static void SetUp()
+ public void SetUp()
{
Console.WriteLine("ElementTests --------------- Setup()");
_element = new TestElement();
}
[TearDown]
- public static void TearDown()
+ public void TearDown()
{
Console.WriteLine("ElementTestss --------------- TearDown()");
}
private static ElementEventArgs _elementEventArgs;
[SetUp]
- public static void SetUp()
+ public void SetUp()
{
Console.WriteLine("FontSizeConverterTests --------------- Setup()");
}
[TearDown]
- public static void TearDown()
+ public void TearDown()
{
Console.WriteLine("FontSizeConverterTests --------------- TearDown()");
}
}
[SetUp]
- public static void SetUp()
+ public void SetUp()
{
Console.WriteLine("TSElementTemplate --------------- Setup()");
}
[TearDown]
- public static void TearDown()
+ public void TearDown()
{
Console.WriteLine("TSElementTemplate --------------- TearDown()");
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")]
- public static void CreateContent_CHECK()
+ public void CreateContent_CHECK()
{
/*TEST CODE*/
var template = new DataTemplate(() => new MockBindable())
[Description("Xamarin.Forms.Entry Tests")]
public class EntryTests
{
- private static Entry _entry;
+ private Entry _entry;
[SetUp]
- public static void SetUp()
+ public void SetUp()
{
Console.WriteLine("EntryTests --------------- Setup()");
_entry = new Entry();
}
[TearDown]
- public static void TearDown()
+ public void TearDown()
{
Console.WriteLine("EntryTests --------------- TearDown()");
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void Entry_INIT()
+ public void Entry_INIT()
{
/* TEST CODE */
var entry = new Entry();
Assert.IsTrue(flagCompleted, "Event value changed should be handled.");
}
}
-}
+}
\ No newline at end of file
[TestFixture]
class EventTriggerTests
{
- private static EventTrigger _eventTrigger;
+ private EventTrigger _eventTrigger;
[SetUp]
public void SetUp()
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void EventTrigger_INIT()
+ public void EventTrigger_INIT()
{
/* TEST CODE */
var eventTrigger = new EventTrigger();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void Event_READ_WRITE()
+ public void Event_READ_WRITE()
{
/*TEST CODE*/
string str = "MockEvent";
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void Actions_READ_ONLY()
+ public void Actions_READ_ONLY()
{
/*TEST CODE*/
var getProperty = _eventTrigger.Actions;