public class ScrollToRequestedEventArgsTests
{
[SetUp]
- public static void SetUp()
+ public void SetUp()
{
Console.WriteLine("TSScrollToRequestedEventArgs --------------- Setup()");
}
[TearDown]
- public static void TearDown()
+ public void TearDown()
{
Console.WriteLine("TSScrollToRequestedEventArgs --------------- TearDown()");
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")]
- public static void Element_READ_ONLY()
+ public void Element_READ_ONLY()
{
/*TEST CODE*/
var scrollView = new ScrollView();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")]
- public static void Mode_READ_ONLY()
+ public void Mode_READ_ONLY()
{
/*TEST CODE*/
var scrollView = new ScrollView();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")]
- public static void Position_READ_ONLY()
+ public void Position_READ_ONLY()
{
/*TEST CODE*/
var scrollView = new ScrollView();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")]
- public static void ScrollX_READ_ONLY()
+ public void ScrollX_READ_ONLY()
{
/*TEST CODE*/
var scrollView = new ScrollView();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")]
- public static void ScrollY_READ_ONLY()
+ public void ScrollY_READ_ONLY()
{
/*TEST CODE*/
var scrollView = new ScrollView();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")]
- public static void ShouldAnimate_READ_ONLY()
+ public void ShouldAnimate_READ_ONLY()
{
/*TEST CODE*/
var scrollView = new ScrollView();
[TestFixture]
public class ScrollViewTests
{
- private static ScrollView _scrollView;
- private static Boolean isScrolled;
+ private ScrollView _scrollView;
+ private Boolean isScrolled;
[SetUp]
public void SetUp()
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void ScrollView_INIT()
+ public void ScrollView_INIT()
{
/*TEST CODE*/
var scrollView = new ScrollView();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void Content_READ_WRITE()
+ public void Content_READ_WRITE()
{
/*TEST CODE*/
var label = new Label()
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void ContentSize_READ_ONLY()
+ public void ContentSize_READ_ONLY()
{
/*TEST CODE*/
var getProperty = _scrollView.ContentSize;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void Orientation_READ_WRITE()
+ public void Orientation_READ_WRITE()
{
/*TEST CODE*/
var hor = ScrollOrientation.Horizontal;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void ScrollX_READ_ONLY()
+ public void ScrollX_READ_ONLY()
{
/*TEST CODE*/
var curXPosition = _scrollView.ScrollX;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void ScrollY_READ_ONLY()
+ public void ScrollY_READ_ONLY()
{
/*TEST CODE*/
var curYPosition = _scrollView.ScrollY;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "EVL")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void Scrolled_EVENT()
+ public void Scrolled_EVENT()
{
/* TEST CODE */
isScrolled = false;
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
[Property("COVPARAM", "Double, Double, bool")]
- public static void ScrollToAsync_CHECK_STATUS()
+ public void ScrollToAsync_CHECK_STATUS()
{
/*TEST CODE*/
var item = new Label();
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")]
[Property("COVPARAM", "Element, ScrollToPosition, bool")]
- public static void ScrollToAsync_CHECK_STATUS_ELEMENT()
+ public void ScrollToAsync_CHECK_STATUS_ELEMENT()
{
/*TEST CODE*/
var item = new Label();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void OnSizeRequest_INVOKED_CHECK()
+ public void OnSizeRequest_INVOKED_CHECK()
{
/*TEST CODE*/
CustomScrollView customScrollListView = new CustomScrollView();
[Description("Xamarin.Forms.Size Tests")]
public class SizeTests
{
- private static Size _size;
+ private Size _size;
[SetUp]
- public static void SetUp()
+ public void SetUp()
{
Console.WriteLine("SizeTests --------------- Setup()");
_size = new Size();
}
[TearDown]
- public static void TearDown()
+ public void TearDown()
{
Console.WriteLine("SizeTests --------------- TearDown()");
}
[Description("Xamarin.Forms.SizeRequest Tests")]
public class SizeRequestTests
{
- private static SizeRequest sizeRequest;
+ private SizeRequest sizeRequest;
[SetUp]
- public static void SetUp()
+ public void SetUp()
{
Console.WriteLine("SizeRequestTests --------------- Setup()");
}
[TearDown]
- public static void TearDown()
+ public void TearDown()
{
Console.WriteLine("SizeRequestTests --------------- TearDown()");
}
[TestFixture]
public class SliderTests
{
- private static Slider slider;
- public static Boolean isValueChanged;
+ private Slider slider;
+ public Boolean isValueChanged;
[SetUp]
public void Setup()
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PCST")]
[Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")]
- public static void MaximumProperty_CHECK_BINDABLE()
+ public void MaximumProperty_CHECK_BINDABLE()
{
/* TEST CODE */
var mFirstMaximumProperty = 2.0;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PCST")]
[Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")]
- public static void MinimumProperty_CHECK_BINDABLE()
+ public void MinimumProperty_CHECK_BINDABLE()
{
/* TEST CODE */
var mFirstMinimumProperty = 2.0;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PCST")]
[Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")]
- public static void ValueProperty_CHECK_BINDABLE()
+ public void ValueProperty_CHECK_BINDABLE()
{
/* TEST CODE */
var mFirstValueProperty = 2.0;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")]
- public static void Maximum_READ_WRITE()
+ public void Maximum_READ_WRITE()
{
/* TEST CODE */
double value = 10.0;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")]
- public static void Minimum_READ_WRITE()
+ public void Minimum_READ_WRITE()
{
/* TEST CODE */
double value = 1.0;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")]
- public static void Value_READ_WRITE()
+ public void Value_READ_WRITE()
{
/* TEST CODE */
double value = 1.0;
Assert.IsTrue(slider.Value.Equals(value), "Set and get values are not equal");
}
- public static void ValueChangedCallback(object sender, System.EventArgs e)
+ public void ValueChangedCallback(object sender, System.EventArgs e)
{
isValueChanged = true;
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "EVL")]
[Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")]
- public static void ValueChanged_EVENT()
+ public void ValueChanged_EVENT()
{
/* TEST CODE */
isValueChanged = false;
[TestFixture]
public class SpanTests
{
- private static Span _span;
- public static Boolean isPropertyChanged;
+ private Span _span;
+ public Boolean isPropertyChanged;
[SetUp]
public void SetUp()
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void Span_INIT()
+ public void Span_INIT()
{
/* TEST CODE */
var span = new Span();
Assert.IsInstanceOf<Span>(span);
}
- public static void PropertyChangedCallback(object sender, System.EventArgs e)
+ public void PropertyChangedCallback(object sender, System.EventArgs e)
{
isPropertyChanged = true;
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "EVL")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void PropertyChanged_EVENT()
+ public void PropertyChanged_EVENT()
{
/* TEST CODE */
isPropertyChanged = false;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void BackgroundColor_READ_WRITE()
+ public void BackgroundColor_READ_WRITE()
{
/* TEST CODE */
_span.BackgroundColor = Color.Pink;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void ForegroundColor_READ_WRITE()
+ public void ForegroundColor_READ_WRITE()
{
/* TEST CODE */
_span.ForegroundColor = Color.Pink;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void FontAttributes_READ_WRITE()
+ public void FontAttributes_READ_WRITE()
{
/* TEST CODE */
_span.FontAttributes = FontAttributes.None;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void FontSize_READ_WRITE()
+ public void FontSize_READ_WRITE()
{
/* TEST CODE */
const double fontSize = 12.00;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void FontFamily_READ_WRITE()
+ public void FontFamily_READ_WRITE()
{
/* TEST CODE */
const string fontFamily = "Times New Roman";
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void Text_READ_WRITE()
+ public void Text_READ_WRITE()
{
/* TEST CODE */
const string txt = "SRBD";
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void Font_READ_WRITE()
+ public void Font_READ_WRITE()
{
/* TEST CODE */
var font = new Font();
[TestFixture]
public class StackLayoutTests
{
- private static StackLayout _stackLayout;
+ private StackLayout _stackLayout;
private static bool _flagLayoutChildren;
[SetUp]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void StackLayout_INIT()
+ public void StackLayout_INIT()
{
/* TEST CODE */
var stackLayout = new StackLayout();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void Orientation_READ_WRITE()
+ public void Orientation_READ_WRITE()
{
/* TEST CODE */
_stackLayout.Orientation = StackOrientation.Horizontal;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void Spacing_READ_WRITE()
+ public void Spacing_READ_WRITE()
{
/* TEST CODE */
int spacing = 15;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void OrientationProperty_CHECK_BINDABLE()
+ public void OrientationProperty_CHECK_BINDABLE()
{
/* TEST CODE */
var mFirstori = StackOrientation.Horizontal;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void SpacingProperty_CHECK_BINDABLE()
+ public void SpacingProperty_CHECK_BINDABLE()
{
/* TEST CODE */
double mFirstSpacing = 12.0;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void OnSizeRequest_INVOKED_CHECK()
+ public void OnSizeRequest_INVOKED_CHECK()
{
/*TEST CODE*/
CustomStackLayout customStackLayout = new CustomStackLayout();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Vu Nhu Anh, anh.vn@samsung.com")]
- public static async Task LayoutChildren_INVOKED_CHECK()
+ public async Task LayoutChildren_INVOKED_CHECK()
{
/*TEST CODE*/
var subStackLayout = new CustomStackLayout();
[TestFixture]
public class StepperTests
{
- private static Stepper _stepper;
- public static Boolean isValueChanged;
+ private Stepper _stepper;
+ public Boolean isValueChanged;
[SetUp]
public void SetUp()
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void Stepper_INIT()
+ public void Stepper_INIT()
{
/* TEST CODE */
var stepper = new Stepper();
[Property("CRITERIA", "CONSTR")]
[Property("COVPARAM", "double, double, double, double")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void Stepper_INIT_WITH_PARAMETER()
+ public void Stepper_INIT_WITH_PARAMETER()
{
/* TEST CODE */
var stepper = new Stepper(120, 200, 150, 2);
Assert.AreEqual(2, stepper.Increment);
}
- public static void ValueChangedCallback(object sender, System.EventArgs e)
+ public void ValueChangedCallback(object sender, System.EventArgs e)
{
isValueChanged = true;
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "EVL")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void ValueChanged_EVENT()
+ public void ValueChanged_EVENT()
{
/* TEST CODE */
isValueChanged = false;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PCST")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void IncrementProperty_CHECK_BINDABLE()
+ public void IncrementProperty_CHECK_BINDABLE()
{
/* TEST CODE */
double mFirstIncrement = 12.0;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PCST")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void MaximumProperty_CHECK_BINDABLE()
+ public void MaximumProperty_CHECK_BINDABLE()
{
/* TEST CODE */
double mFirstMaximum = 22.0;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PCST")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void MinimumProperty_CHECK_BINDABLE()
+ public void MinimumProperty_CHECK_BINDABLE()
{
/* TEST CODE */
double mFirstMinimum = 22.0;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PCST")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void ValueProperty_CHECK_BINDABLE()
+ public void ValueProperty_CHECK_BINDABLE()
{
/* TEST CODE */
double mFirstValue = 22.0;
public class StylesTests
{
[SetUp]
- public static void SetUp()
+ public void SetUp()
{
Console.WriteLine("StylesTests --------------- Setup()");
}
[TearDown]
- public static void TearDown()
+ public void TearDown()
{
Console.WriteLine("StylesTests --------------- TearDown()");
}
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License
- */
-
-using System.Threading.Tasks;
+ */\r
+\r
+using System.Threading;\r
+using System.Threading.Tasks;
using NUnit.Framework;
using NUnit.Framework.TUnit;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "EVL")]
[Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")]
- public async Task Toggled_CHECK_EVENT()
+ public void Toggled_CHECK_EVENT()
{
/* PRECONDITION
* 1. Initiate a Switch
_flagToggled = true;
};
mySwitch.IsToggled = true;
- await Task.Delay(500);
+
+ Thread.Sleep(1000);
Assert.IsTrue(_flagToggled, "Flag should be true after Toggled event is called");
}
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PCST")]
[Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")]
- public static void TouchPointsProperty_CHECK_BINDABLE()
+ public void TouchPointsProperty_CHECK_BINDABLE()
{
/* TEST CODE */
TableSectionBase tableSectionBase = new TableSection();
public class TemplateExtensionsTests
{
[SetUp]
- public static void SetUp()
+ public void SetUp()
{
Console.WriteLine("TemplateExtensionsTests --------------- Setup()");
}
[TearDown]
- public static void TearDown()
+ public void TearDown()
{
Console.WriteLine("TemplateExtensionsTests --------------- TearDown()");
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void ControlTemplate_READ_WRITE()
+ public void ControlTemplate_READ_WRITE()
{
/* TEST CODE */
TemplatedPage templatedPage = new TemplatedPage();
}
}
- private static TemplatedView sTemplatedView;
+ private TemplatedView sTemplatedView;
[SetUp]
public void setUp()
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void TemplatedView_INIT()
+ public void TemplatedView_INIT()
{
/*TEST CODE*/
var templatedView = new TemplatedView();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void ControlTemplate_READ_WRITE()
+ public void ControlTemplate_READ_WRITE()
{
/*TEST CODE*/
ControlTemplate controlTemplate = new ControlTemplate(typeof(SimpleTemplate));
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
- public static void OnSizeRequest_INVOKED_CHECK()
+ public void OnSizeRequest_INVOKED_CHECK()
{
/*TEST CODE*/
CustomTemplatedView customTemplatedView = new CustomTemplatedView();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")]
- public static async Task LayoutChildren_INVOKED_CHECK()
+ public async Task LayoutChildren_INVOKED_CHECK()
{
/*TEST CODE*/
NavigationPage mainPage = (NavigationPage)Program.getApp().MainPage;
[Description("Xamarin.Forms.Thickness Tests")]
public class ThicknessTests
{
- private static Thickness _thickness;
+ private Thickness _thickness;
[SetUp]
- public static void SetUp()
+ public void SetUp()
{
Console.WriteLine("ThicknessTests --------------- Setup()");
_thickness = new Thickness();
}
[TearDown]
- public static void TearDown()
+ public void TearDown()
{
Console.WriteLine("ThicknessTests --------------- TearDown()");
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")]
- public static void ThicknessTypeConverter_INIT()
+ public void ThicknessTypeConverter_INIT()
{
/* TEST CODE */
var thicknessTypeComverter = new ThicknessTypeConverter();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")]
- public static void ConvertFromInvariantString_CHECK()
+ public void ConvertFromInvariantString_CHECK()
{
/* PRECONDITION
* 1. Create a ThicknessTypeConverter.
[TestFixture]
public class TimePickerTests
{
- private static TimePicker _timePicker;
+ private TimePicker _timePicker;
[SetUp]
- public static void Init()
+ public void Init()
{
LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Setup---------------------------------");
_timePicker = new TimePicker();
}
[TearDown]
- public static void Destroy()
+ public void Destroy()
{
LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Teardown---------------------------------");
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")]
- public static void TimePicker_INIT()
+ public void TimePicker_INIT()
{
/* TEST CODE */
var timePicker = new TimePicker();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")]
- public static void Format_SET_GET()
+ public void Format_SET_GET()
{
/* PRECONDITION
* 1. Check object TimePicker not null.
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")]
- public static void Time_SET_GET()
+ public void Time_SET_GET()
{
/* PRECONDITION
* 1. Check object TimePicker not null.
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")]
- public static void FormatProperty_PROPERTY_READ_ONLY()
+ public void FormatProperty_PROPERTY_READ_ONLY()
{
/* PRECONDITION
* 1. Initiate two TimePickers.
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")]
- public static void TimeProperty_PROPERTY_READ_ONLY()
+ public void TimeProperty_PROPERTY_READ_ONLY()
{
/* PRECONDITION
* 1. Initiate two TimePickers.
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")]
- public static void TextColorProperty_PROPERTY_READ_ONLY()
+ public void TextColorProperty_PROPERTY_READ_ONLY()
{
/* PRECONDITION
* 1. Initiate two TimePickers.
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")]
- public static void TextColor_PROPERTY()
+ public void TextColor_PROPERTY()
{
/*
* PRECONDITION
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")]
- public static void ToolbarItem_INIT()
+ public void ToolbarItem_INIT()
{
/* TEST CODE */
var toolbarItem = new ToolbarItem();
[Property("CRITERIA", "CONSTR")]
[Property("COVPARAM", "string, string, Action, ToolbarItemOrder, int")]
[Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")]
- public static void ToolbarItem_INIT_WITH_PARAMETER()
+ public void ToolbarItem_INIT_WITH_PARAMETER()
{
/* PRECONDITION
* 1. Make all parameter to create ToolbarItem.
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")]
- public static void Name_SET_GET()
+ public void Name_SET_GET()
{
/* PRECONDITION
* 1. Create a ToolbarItem.
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")]
- public static void Priority_SET_GET()
+ public void Priority_SET_GET()
{
/* PRECONDITION
* 1. Create a ToolbarItem.
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")]
- public static void Order_SET_GET()
+ public void Order_SET_GET()
{
/* PRECONDITION
* 1. Create a ToolbarItem.
toolbarItem.Order = ToolbarItemOrder.Primary;
Assert.AreEqual(ToolbarItemOrder.Primary, toolbarItem.Order, "Order property of ToolbarItem classs doens't set and get successful");
}
- //[Test]
- [Category("P1")]
- [Description("Check whether Activated event is called after touched or clicked.")]
- [Property("SPEC", "Xamarin.Forms.ToolbarItem.Activated E")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "EVL")]
- [Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")]
- public async Task Activated_CHECK_EVENT()
- {
- Assert.True(false, "[NA]Manual TC.");
- await Task.Delay(100);
- }
}
}
[Description("Xamarin.Forms.TypeConverter Tests")]
public class TypeConverterTests
{
- public static TypeConverter _typeConverter;
+ public TypeConverter _typeConverter;
[SetUp]
- public static void SetUp()
+ public void SetUp()
{
Console.WriteLine("TypeConverterTests --------------- Setup()");
_typeConverter = new CustomTypeConverter();
}
[TearDown]
- public static void TearDown()
+ public void TearDown()
{
Console.WriteLine("TypeConverterTests --------------- TearDown()");
}
[Description("Xamarin.Forms.TypeConverterAttribute Tests")]
public class TypeConverterAttributeTests
{
- public static TypeConverterAttribute _typeConverterAttribute;
+ public TypeConverterAttribute _typeConverterAttribute;
[SetUp]
- public static void SetUp()
+ public void SetUp()
{
Console.WriteLine("TypeConverterAttributeTests --------------- Setup()");
_typeConverterAttribute = new TypeConverterAttribute();
}
[TearDown]
- public static void TearDown()
+ public void TearDown()
{
Console.WriteLine("TypeConverterAttributeTests --------------- TearDown()");
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")]
- public static void ConvertFromInvariantString_CHECK()
+ public void ConvertFromInvariantString_CHECK()
{
/* PRECONDITION
* 1. Create a UriTypeConverter.
[Description("Xamarin.Forms.Vec2 Tests")]
public class Vec2Tests
{
- private static Vec2 vec2;
+ private Vec2 vec2;
[SetUp]
- public static void SetUp()
+ public void SetUp()
{
Console.WriteLine("Vec2Tests --------------- Setup()");
}
[TearDown]
- public static void TearDown()
+ public void TearDown()
{
Console.WriteLine("Vec2Tests --------------- TearDown()");
}
}
}
- private static TestView _view;
+ private TestView _view;
[SetUp]
- public static void SetUp()
+ public void SetUp()
{
Console.WriteLine("TSViewTests --------------- Setup()");
_view = new TestView()
}
[TearDown]
- public static void TearDown()
+ public void TearDown()
{
Console.WriteLine("TSViewTests --------------- TearDown()");
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PCST")]
[Property("AUTHOR", "Md.Elme Focruzzaman Razi, ef.razi@samsung.com")]
- public static void HorizontalOptionsProperty_CHECK_BINDABLE()
+ public void HorizontalOptionsProperty_CHECK_BINDABLE()
{
/*TEST CODE*/
_view.HorizontalOptions = LayoutOptions.FillAndExpand;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PCST")]
[Property("AUTHOR", "Md.Elme Focruzzaman Razi, ef.razi@samsung.com")]
- public static void MarginProperty_CHECK_BINDABLE()
+ public void MarginProperty_CHECK_BINDABLE()
{
/*TEST CODE*/
_view.Margin = new Thickness(12.4);
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PCST")]
[Property("AUTHOR", "Md.Elme Focruzzaman Razi, ef.razi@samsung.com")]
- public static void VerticalOptionsProperty_CHECK_BINDABLE()
+ public void VerticalOptionsProperty_CHECK_BINDABLE()
{
/*TEST CODE*/
_view.VerticalOptions = LayoutOptions.FillAndExpand;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Md.Elme Focruzzaman Razi, ef.razi@samsung.com")]
- public static void GestureRecognizers_READ()
+ public void GestureRecognizers_READ()
{
/*TEST CODE*/
var gestureRecognizer = new TapGestureRecognizer();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Md.Elme Focruzzaman Razi, ef.razi@samsung.com")]
- public static void HorizontalOptions_READ_WRITE()
+ public void HorizontalOptions_READ_WRITE()
{
/*TEST CODE*/
var horizontalOptions = LayoutOptions.FillAndExpand;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Md.Elme Focruzzaman Razi, ef.razi@samsung.com")]
- public static void Margin_READ_WRITE()
+ public void Margin_READ_WRITE()
{
/*TEST CODE*/
var margin = new Thickness(15.03);
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Md.Elme Focruzzaman Razi, ef.razi@samsung.com")]
- public static void VerticalOptions_READ_WRITE()
+ public void VerticalOptions_READ_WRITE()
{
/*TEST CODE*/
var verticalOptions = LayoutOptions.FillAndExpand;
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Md.Elme Focruzzaman Razi, ef.razi@samsung.com")]
- public static void OnBindingContextChanged_CHECK_INVOCK()
+ public void OnBindingContextChanged_CHECK_INVOCK()
{
/*TEST CODE*/
_view.VerticalOptions = LayoutOptions.FillAndExpand;
Assert.IsNotNull(task, "Task instance is null.");
}
-
- //[Test]
- [Category("P1")]
- [Description("Check if aborts the animation.")]
- [Property("SPEC", "Xamarin.Forms.ViewExtensions.CancelAnimations M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MCST")]
- [Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")]
- public async Task CancelAnimations_CHECK_STATUS()
- {
- /* TEST CODE */
- View view = new StackLayout();
-
- bool isTranslating = await view.TranslateTo(100.0, 50.0, 3000);
-
- Assert.IsTrue(isTranslating, "View is not Translating.");
- ViewExtensions.CancelAnimations(view);
- Assert.IsFalse(isTranslating, "View is Translating.");
- }
-
[Test]
[Category("P1")]
[Description("Check if returns a task that performs the fading.")]
using System.Collections;
using System.Collections.Generic;
using XamarinForTizen.Tizen;
-using AutoTemplate;\r
-\r
+using AutoTemplate;
+
namespace Xamarin.Forms.Core.UnitTests
{
[TestFixture]
[Description("Xamarin.Forms.VisualElement Tests")]
public class VisualElementTests
{
- private static VisualElement _visualElement;
+ private VisualElement _visualElement;
private static bool
_flagFocused,
_flagUnfocused,
base.OnSizeAllocated(width, height);
}
- //protected override void OnDisabled()
- //{
- // LogUtils.write(LogUtils.DEBUG, LogUtils.TAG, "OnDisabled invoked");
- // _flag = true;
- // base.OnDisabled();
- //}
-
- //protected override void OnEnabled()
- //{
- // LogUtils.write(LogUtils.DEBUG, LogUtils.TAG, "OnEnabled invoked");
- // _flag = true;
- // base.OnEnabled();
- //}
-
public void TestInvalidateMeasure()
{
Console.WriteLine("TestInvalidateMeasure invoked");
}
[SetUp]
- public static void SetUp()
+ public void SetUp()
{
Console.WriteLine("VisualElementTests --------------- Setup()");
_visualElement = new ContentPage();
}
[TearDown]
- public static void TearDown()
+ public void TearDown()
{
Console.WriteLine("VisualElementTests --------------- TearDown()");
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void MinimumHeightRequest_READ_WRITE()
+ public void MinimumHeightRequest_READ_WRITE()
{
/* TEST CODE */
Assert.AreEqual(-1, _visualElement.MinimumHeightRequest, "MinimumHeightRequest property Default value is not -1");
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void MinimumWidthRequest_READ_WRITE()
+ public void MinimumWidthRequest_READ_WRITE()
{
/* TEST CODE */
Assert.AreEqual(-1, _visualElement.MinimumWidthRequest, "MinimumWidthRequest property Default value is not -1");
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRW")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void Opacity_READ_WRITE()
+ public void Opacity_READ_WRITE()
{
/*PRECONDITION*/
/*
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void BatchBegin_CHECK()
+ public void BatchBegin_CHECK()
{
/* TEST CODE */
try
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void BatchCommit_CHECK()
+ public void BatchCommit_CHECK()
{
/* TEST CODE */
try
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void Focus_CHECK_RETURN_VALUE()
+ public void Focus_CHECK_RETURN_VALUE()
{
/* TEST CODE */
App app = XamarinForTizen.Tizen.Program.getApp();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void Focus_CHECK_STATUS()
+ public void Focus_CHECK_STATUS()
{
/* TEST CODE */
VisualElement visual = new Button();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void Unfocus_CHECK()
+ public void Unfocus_CHECK()
{
/* TEST CODE */
VisualElement visualElement = new Button();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void Unfocus_CHECK_STATUS()
+ public void Unfocus_CHECK_STATUS()
{
/* TEST CODE */
VisualElement visual = new Button();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void Layout_CHECK_RETURN_VALUE()
+ public void Layout_CHECK_RETURN_VALUE()
{
/* TEST CODE */
VisualElement visual = new Button();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void GetSizeRequest_CHECK_RETURN_VALUE()
+ public void GetSizeRequest_CHECK_RETURN_VALUE()
{
/* TEST CODE */
VisualElement visual = new Button();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void Measure_CHECK_RETURN_VALUE_MEASUREFLAGS_NONE()
+ public void Measure_CHECK_RETURN_VALUE_MEASUREFLAGS_NONE()
{
/* TEST CODE */
VisualElement visual = new Button();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void Measure_CHECK_RETURN_VALUE_MEASUREFLAGS_INCLUDEMARGINS()
+ public void Measure_CHECK_RETURN_VALUE_MEASUREFLAGS_INCLUDEMARGINS()
{
/* TEST CODE */
VisualElement visual = new Button();
}
}
-}
+}
\ No newline at end of file
}
}
- private static TestWebView _testWebView;
- private static WebView _webView;
+ private TestWebView _testWebView;
+ private WebView _webView;
[SetUp]
- public static void SetUp()
+ public void SetUp()
{
Console.WriteLine("TSWebViewTests --------------- Setup()");
_webView = new WebView()
}
[TearDown]
- public static void TearDown()
+ public void TearDown()
{
Console.WriteLine("TSWebViewTests --------------- TearDown()");
}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void Eval_CHECK()
+ public void Eval_CHECK()
{
/* TEST CODE */
try
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void GoBack_CHECK()
+ public void GoBack_CHECK()
{
/* TEST CODE */
try
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void GoForward_CHECK()
+ public void GoForward_CHECK()
{
/* TEST CODE */
try
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void OnBindingContextChanged_CHECK_INVOCK()
+ public void OnBindingContextChanged_CHECK_INVOCK()
{
/*TEST CODE*/
_testWebView = new TestWebView();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MCST")]
[Property("AUTHOR", "Abu Sina Md. Raju Chowdhury, asm.raju@samsung.com")]
- public static void OnPropertyChanged_CHECK_INVOCK()
+ public void OnPropertyChanged_CHECK_INVOCK()
{
/* TEST CODE */
_testWebView = new TestWebView();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "CONSTR")]
[Property("AUTHOR", "Arindom Kumar Chanda Sajal, arindom.ch@samsung.com")]
- public static void WebViewSource_INIT()
+ public void WebViewSource_INIT()
{
CustomWebViewSource customWebViewSource = new CustomWebViewSource();
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
[Property("AUTHOR", "Pham Phuong Dong, dong.phuong@samsung.com")]
- public static void ConvertFromInvariantString_CHECK()
+ public void ConvertFromInvariantString_CHECK()
{
/* PRECONDITION
* 1. Create a WebViewSourceTypeConverter.