By, Ben Dewey Senior Software Developer twentySix New York

Slides:



Advertisements
Similar presentations
Unit testing in.Net. Copyright 2007 Tikal Knowledge, Ltd. | 2 | Agenda Introduction Visual Studio built-in support Open source frameworks Working together.
Advertisements

Timmy Kokke Silverlight / ASP.Net Developer UNIT4 Internet Solutions Expression Blend MVP.
What is Unit Testing? How TDD Works? Tsvyatko Konov Telerik Corporation
Peli de Halleux Senior Research Software Design Engineer Microsoft Research.
 In inheritance the child (subclass) chooses its parent (superclass)  Remember - only public or “protected” methods and variables are inherited  Should.
Word Cards by Team 6 Problem: Learning new words and languages should be made accessible and enjoyable through the use of software – Enable learners to.
Microsoft Focus & Expertise We have a world-class team of Microsoft experts that can make any other platform integrate better with an existing enterprise.
 About Me: Eric Hexter  Director of Austin.Net User Group  AspInsiders  Organized the 2007 Austin Code Camp  Build websites and web applications since.
By, Ben Dewey Senior Software Developer Tallan, Inc.
Microsoft TechDayshttp:// Сергей Пугачёв Студент-партнёр Microsoft Microsoft MVP.
Visualizing Generalizations Rylan Cottrell. Generalization Contains common pieces from the original two source code fragments. Abstract the code fragments.
By, Ben Dewey Senior Software Developer Tallan, Inc
By, Ben Dewey Senior Software Developer twentySix New York
Unit testing C# classes “If it isn’t tested it doesn’t work” Unit testing C# classes1.
Building Modular Silverlight Applications with the Managed Extensibility Framework Ben Dewey twentysix New York
30 April 2014 Building Apps for Windows Phone 8.1 Jump Start WinRT Apps & Silverlight.
Recognizes: Magic Memo, show me memo number three. Magic Memo, show memo one. Magic Memo, display memo number two. Magic Memo, display memo.
Passwords, Encryption Forensic Tools
BDD with SpecFlow. Why BDD? 1. BDD helps build the right thing. Traditionally there are many handoffs - Requirements, development, component testing,
Unit and Functional Testing Your Flex Applications Mike Nimer Dir. Of Engineering nomee.com.
Windows Phone 8 Tips & Tricks for Developers Sascha Corti, Microsoft Switzerland Technical Evangelist | techpreacher.corti.com.
Testing Especially Unit Testing. V-model Wikipedia:
C# Events and WPF #W5. Horizontal Prototype WPF Designed for rapid user interface design Used for many devices: Windows Phone, Tablets, PCs,
Test Driven Development Arrange, Act, Assert… Awesome Jason Offutt Software Engineer Central Christian Church
Unit Testing Building Rock-Solid Software SoftUni Team Technical Trainers Software University
The Racing Game of Knowledge Continue. Authored by Jeff Ertzberger University of North Carolina at Wilmington All rights reserved. All Clipart.
Windows Phone MVVM and Unit Testing Step by Step Andy Wigley Windows Phone Development MVP, Mobile Software Consultant APPA Mundi Ltd WPH208.
IT Internal Audit “Hot Topics” April 2011 Agenda Survey Overview Survey Results IT Internal Audit Hot Topics Overview – Social Media and Social Networking.
Designing software architectures to achieve quality attribute requirements F. Bachmann, L. Bass, M. Klein and C. Shelton IEE Proceedings Software Tzu-Chin.
1 + 1 becomes 11 what does our software promise?.

Getting Images from TouchlessLib. Download, unzip.
Testing Azure Applications with Visual Studio 2010 Abhishek Agrawal Senior Program Manager Visual Studio Microsoft Corporation
[ServiceContract] public interface IJokeOfTheDayService { [OperationContract] string GetJoke(int jokeStrength); }
Chris J.T. Auld – Director, Intergen
30 April 2002 SingTel Group Submission Interconnection Charge Model for Internet Dial-Up Originating Access Model for Internet Dial Up Traffic (Dial-up.
WebClient client; 10 // Constructor public MainPage() { InitializeComponent(); client = new WebClient(); client.DownloadStringCompleted.
private void Application_Launching(object sender, LaunchingEventArgs e) { } private void Application_Activated(object.
REM function that gets called when the network changes Private Sub OnNetworkChange (ByVal s As Object, _ ByVal a As EventArgs) REM Perform detection.
Car key Reflection How is a car key like a reflection? A car key and a reflection are linked because…
Today protected access modifier Using the debugger in Eclipse JUnit testing TDD Winter 2016CMPE212 - Prof. McLeod1.
Unit Testing Silverlight & Windows Phone Applications Jeff Wilcox Senior Software Development Engineer Silverlight
David Starr Pluralsight Instructor ALM Consultant Visual Studio ALM MVP SESSION CODE: DPR302 Blog:
TESTING TEST DRIVEN DEVELOPMENT
Automated UI Testing with Seleno.
Test Driven Development
What’s New in the Lync Client SDK 9/8/2018 8:15 AM
How unit testing frameworks hurt your unit testing efforts
Unit testing C# classes
The Racing Game of Knowledge
Moving Applications to the Cloud
The Racing Game of Knowledge
البرمجة بلغة الفيجول بيسك ستوديو
Unit Testing with xUnit.net-Part-2
Integrating Security Roles into Microsoft Silverlight Applications
Subtitle or catch phrase for the presentation
Subtitle or catch phrase for the presentation
MIX 09 12/8/2018 4:33 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Subtitle or catch phrase for the presentation
Test driving angularjs
Welcome to Azure Notebooks
Суури мэдлэг Basic Knowledge
Business Continuity Seminar
Unit Testing for the Absolute Beginner
HOME.
Navigation through Source Code
Chapter 13: Handling Events
Modified at -
Telerik Testing Framework
Subtitle or catch phrase for the presentation
Presentation transcript:

By, Ben Dewey Senior Software Developer twentySix New York

Assumptions Basic knowledge of Silverlight Unit Testing Nice to have knowledge of MSTest

Overview What is Testing/TDD Setting up the Silverlight Unit Testing Test Harness Basic Unit Test Asynchronous Unit Tests Questions

Preface Unit Testing (MSTest) [TestMethod] public void Can_CreateCar() { // Arrange // Act var car = new Car(); // Assert Assert.IsNotNull(car); } Test Driven Design (TDD) Testing first and allowing your tests/requirements to drive your design

Original Unit Testing Framework

April 2010 Silverlight Toolkit

Context

Setting up the Test Harness Add Project Silverlight Unit Testing Applications

Setting up the Test Harness Add References Microsoft.Silverlight.Testing Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight Modify App.xaml.cs private void Application_Startup(object sender, StartupEventArgs e) { RootVisual = UnitTestSystem.CreateTestPage(); }

Asynchronous Unit Tests [TestClass] public class MainPageTests : SilverlightTest { [TestMethod, Asynchronous] public void Can_ShowHide_Windows() { // Arrange var controller = new GameController(); var mainPage = new MainPage(controller); this.TestPanel.Children.Add(mainPage); var startWindow = mainPage.FindName("StartWindow") as UIElement; var endWindow = mainPage.FindName("EndWindow") as UIElement; // Act // Assert EnqueueDelay(500); EnqueueCallback(() => { controller.ShowStartScreen = false; Assert.AreEqual(Visibility.Collapsed, startWindow.Visibility); Assert.AreEqual(Visibility.Collapsed, endWindow.Visibility); }); EnqueueDelay(500); EnqueueTestComplete(); } }

Links Jeff Wilcox – Creator of SUT

Microsoft Design Toolbox

By, Ben Dewey