Tag | Testing Posts

Developers that use unit testing are familiar with Resharper and his plugin for Unit Testing. For those that like me, don't have a great pc hardware (Pentium 4, 3ghz, 1GB ram) the Resharper can be really slow, and affect the performance of pc. That's why i use TestDriven.NET TestDriven.NET is a freeware license tool (there are others licenses for this product) that gives us the possibility to run unit tests with this plugin, that's integrated with Visual Studio. You can check some screenshots here: ...
In this Issue: Steve Wortham, Jesse Liberty(-2-), Martin Krüger, Joe McBride, Dan Wahlin, Walter Ferrari, Page Brooks, Deborah Kurata, WindowsPhoneGeek, Andrew Byrne, and Andrea Boschin. Above the Fold: Silverlight: "Clipping to Bounds with Geometries and Attached Behaviors" Page Brooks WP7: "Tasks: Launchers and Choosers–Windows Phone From Scratch #22" Jesse Liberty Expression Blend: "Remove Transformation from shapes in Blend" Andrea Boschin From SilverlightCream.com: XAP File Optimization Techniques ...
This morning I was working on a client application after I made my last post on Ben’s article about shared databases. So, I went to check in my code. TFS build ran a bit and then rejected it. The services layer was throwing an exception. Took a bit to track down the exception occurred in the database call to a sproc. So, what was going on? Turns out someone changed a sproc in the shared database. So when my code checked in the unit tests failed. Perfect example of the evil of a shared development ...
Yes, coding in its general sense is extremely easy, and it is getting easier by the day. So easy that a small child can rattle off some code and end up with something that works. In fact, for many years there I was in my little bubble with the IDE as my own personal universe where I could define my own rules on how things worked with little regard to anything anyone else said or did. If I wanted on Monday to declare all variables in small case, then that was fine. If on Tuesday I decided that it ...
My wife this weekend noted as she was reading CNET that WordPress had announced a vulnerability to a worm. Well, actually, they announced that if you had skipped the last two releases, failed to do your updates, that you would be vulnerable to the worm. The question often happens, not so much in the actual software development shops, but rather from the common user How does this happen? They should find all the bugs before they ship! I’ve thought about this question a lot. It really does seem somewhat ...
Silverlight testing is great, we all know that (don’t we??), we’re expected to do it as part of the development process, but once we’ve got an awesome application written and we come to deploy it, we don’t want the test files going out with it… You might be like me, have the files in a Web project – let’s face it, that’s how we’re pushed into doing it… So let’s stick with it! Now. I’m deploying via the wonders of the Web Deployment shizzle, but this also applies to the classic ‘installer’ project ...
I just got back from Codemash yesterday, and still on an adrenaline buzz. Here's my take on this years encounter: The Awesome Nearly everybody in one place Codemash is the ultimate place to catch up with community friends. This is my 3rd year visiting and I've got to know a great number of very cool people through various conferences, Give Camps and other community events. I'm finding more and more that Codemash is the best place to catch up with everybody regardless of technology interest or location. ...
Microsoft have now released Web Matrix (and ASP.NET MVC3 if you so inclined!) One signifcant utility is IIS Express which will replace Cassini It is worth noting that SP1 for VS2010 should be out in Q1. Links: http://www.hanselman.com/bl... http://www.hanselman.com/bl... http://arstechnica.com/micr... ...
Last few weeks, I have been working on Application Packaging stuff using all the widely used tools like InstallShield, WISE, WiX and Visual Studio Installer. So, I thought it would be good to post about how to Build the Installers developed using these tools with Team Build 2010. This post will focus on how to build the InstallShield generated packages using Team Build 2010. For the release of VS2010, Microsoft has partnered with Flexera who are the makers of InstallShield to create InstallShield ...
Recently I had reason to be very glad that I had Fiddler. I was able to record some web service traffic and identify a problem as Fiddler can record both the call to a web service and response from the web service. By seeing the actual data traffic I was able to resolve a problem found in testing in less time than it has taken me to write this blog entry! This tool is also useful for studying general web site traffic. Fiddler is available from http://www.fiddler2.com/fid... There are training ...
I just released an open source project at codeplex, which includes a set of T-4 templates to enable you to build logical layers (i.e. DAL/BLL) with just few clicks! The logical layers implemented here are based on Entity Framework 4.0, ASP.NET Web Form Data Bound control friendly and fully unit testable. In this open source project you will get Entity Framework 4.0 based T-4 templates for following types of logical layers: Data Access Layer: Entity Framework 4.0 provides excellent ORM data access ...
Internationalization (i18n) is a way of designing and developing a software product to function in multiple locales. This process involves identifying the locales that must be supported, designing features which support those locales, and writing code that functions equally well in any of the supported locales. Localization (L10n) is a process of modifying or adapting a software product to fit the requirements of a particular locale. This process includes (but may not be limited to) translating the ...
Welcome to 2011, it is already shaping up to be a very exciting year. The title of the post is not about charitable giving, although that is also a great topic. Application Lifecycle Management and the Systems that support the environment is, and 2011 will be a year where I expect many teams to invest heavily in this area. For those not familiar with ALM, it can be simplified down to "A comprehensive view of all of the iteas, requirements, activities and artifacts that impact an application over ...
There is a bug in the unit testing framework in Visual Studio 2010 with unit testing. The bug appears in a very special circumstance involving an internal generic type. The bug causes the following exception to be thrown: System.InvalidProgramExcept... JIT Compiler encountered an internal limitation. This occurs under the following circumstances: Type being tested is internal or private Method being tested is generic Method being tested has an out parameter Type accessor functionality used to access ...
I still haven't updated my friends at SilverlightShow, but I have their list from last week. Check out the Top Five most popular news at SilverlightShow for last week (13 - 19 Dec 2010). First place for the past week takes the post about Mahesh Sabnis' sample Line-Of-Business app using Silverlight 4. A lot of clicks and downloads got also the recording of SilverlightShow webinar 'Building an end-to-end Silverlight 4 Application' presented by Gill Cleeren on Dec 15th. Here is SilverlightShow's weekly ...
In this Issue: Rénald Nollet, Benjamin Gavin, Dennis Doomen, Tim Greenfield, Mike Taulty, Jeff Blankenburg, Michael Crump, Laurent Duveau, Dragos Manolescu, KeyboardP, Yochay Kiriaty. Above the Fold: Silverlight: "Silverlight RIA Services and Basic, Anonymous Authentication" Benjamin Gavin WP7: "lving Circular Navigation in Windows Phone Silverlight Applications" Yochay Kiriaty SQL Azure: "SQL Azure Database Manager – Part 1 : How to connect to your SQL Azure DB" Rénald Nollet Shoutouts: Yochay Kiriaty ...
In this Issue: Michael Crump, Jesse Liberty, Shawn Wildermuth, Domagoj Pavlešic, Peter Kuhn, James Ashley, Sara Summers, Morten Nielsen, Peter Torr, and Tau Sick. Above the Fold: Silverlight: "Silverlight 4 – Coded UI Framework Video Tutorial" Michael Crump WP7: "Windows Phone From Scratch #12–Custom Behaviors (Part I)" Jesse Liberty From SilverlightCream.com: Silverlight 4 – Coded UI Framework Video Tutorial Michael Crump posted a video tutorial today on the Coded UI Test Framework that we got with ...
I was having a hell of a time tonight with my IIS on my development laptop. I don’t remember doing anything to change the IIS settings. I don’t use IIS that much on my dev machine. Usually Cassini is enough for testing my development efforts but tonight I needed to replicate a problem that seems to stem from x86 v x64 mismatch, so I went to create an IIS site pointed to my dev folder. When I did, I got a “503.1 Service Unavailable Error”. First thing I did is go over all my setting to make sure I ...
Part 1 - Listing Data from Database: Let us now learn ASP.NET MVC 2 from Scratch by actually developing a front end website for the Chinook database, which is an alternative to the traditional Northwind database. You can get the Chinook database from here. As always the best way to learn something is by working on it and doing something. The Chinook database has the following schema, a quick look will help us implementing the application in a efficient way. Let us first implement a grid view table ...
Silverlight 5 is coming next year (2011) and this blog post will tell you what you need to know before the beta ships. First, let me address people saying that it is dead after PDC 2010. I believe that it’s best to see what the market is doing, not the vendor. Below is a list of companies that are developing Silverlight 4 applications shown during the Silverlight Firestarter. Some of the companies have shipped and some haven’t. It’s just great to see the actual company names that are working on Silverlight ...
This post is about VS 2010, go here for the VS/TFS 11 extensions. UPDATED Apr 9th 2012: VersionInfo, NuGet, Code Contracts UPDATED Oct 7th 2012: New Visual Studio GDR UPDATED Aug 31th 2012: New versions updated of ReSharper, NDepend, Web Essentials, Community Build Manager, Code Contracts (March 2012), NuGet, ILSpy, DotPeek, Just Decompile, tangible T4 editor, LinqPad. Added the VersionInfo tool, so you know you have the latest update of VS 2010 UPDATED April 20th 2012: New version of NuGet manager. ...
In this Issue: Brad Tutterow, Kevin Dockx, Richard Waddell, Roberto Sonnino, Dustin Horne, Tim Greenfield, Rod Paddock, Timmy Kokke, Tim Heuer, Manuel Felício, Mike Taulty, and Brian Noyes. Above the Fold: Silverlight: "Using Visual States in custom controls in Silverlight" Timmy Kokke WP7: "Leveraging the Silverlight ecosystem with Windows Phone 7" Tim Greenfield Silverlight/JS: "JavaScript Can't Do Math - SilverlightCalculator A New Silverlight OSS Project" Rod Paddock Shoutouts: Telerik announced ...
Part 1 | Part 2 | Part 3 | Part 4 I wanted to create a series of blog post that gets right to the point and is aimed specifically at Silverlight Developers. The most important things I want this series to answer is : What is it? Why do I care? How do I do it? I hope that you enjoy this series. Let’s get started: Tip/Trick #1) What is it? You can easily enable a visual Framerate counter inside your Silverlight Application. The end result looks like the image below: Why do I care? This should be used ...
Gizmox R&D team has been working very hard in order to bring our 6.4 version of Visual WebGui to the required stability level. During that period, 13 QA versions have been produced and our QA team and beta-testers group have been testing it for a coupon real-world applications while covering all the possible scenarios we could think of. The stability added in this version is really across the framework, mostly concentrating in client-side behavior and display matters but also in server-side and ...
Whilst reading through Design Driven Testing (ISBN 978-1-4302, I came across a very telling statement concerning the expansion of use cases. This was in the context of sunny days (default course through the application) and rainy days (the paths travelled when things go wrong). The quote I want to share with you is this: "If the rainy days scenarios are not explored in sufficient depth before coding begins, all sorts of nasty surprises can leap up during coding, often resulting in a need to rethink ...
Normal 0 false false false EN-GB X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans... mso-ascii-font-family:Calibri; ...
In this Issue: Martin Krüger, Vikas, Kevin Dockx, Brian Noyes, Kunal Chowdhury, Gergely Orosz, Garry McGlennon, René Schulte, Matias Bonaventura, Bart Czernicki, and Dennis Doomen. Above the Fold: Silverlight: "How to: create a nonrectangular ChildWindow - part 1" Martin Krüger Prism: "Prism Training Kit: Updated to Prism 4.0" Matias Bonaventura Shoutouts: Component Ways has a releast of their xamlDataGrid for Silverlight... might be worth a look ... check out the feature set and download the eval. ...
Is unit testing a difficult thing to ask for? I don't understand why developers try to simply avoid unit testing. We have unit testing integrated to Visual Studio; there is also NUnit. These make life easier, not difficult. Maybe, it needs a little getting used to at first; but eventual benefit simply outweighs all the pains. I have noticed that people try to build unit tests if they are carefully watched; otherwise they tend to skip. It is sometimes difficult to implement strict procedures in a ...
I've been meaning to write a blog post for a while about how we implemented a scatter gather pattern at one of my clients. Ive recently been reading Richard and the gangs new book which discusses a very similar pattern but with a different design decision. Based on that I have decided to expand on the original planned post to talk about what we did and our decision process using the decision framework discussed in the book. The aim here is to show that the "it depends" principle means that there ...
You are reading an old version of my weblog. Please update your bookmarks to http://www.timmykokke.com Intro Visual States are an easy way to change the looks of your controls based on certain states. This state can be something like a mouse hover, some invalid state or any state you need in a control. For this tutorial I chose a traffic light control that can be one of four states. Green, Orange, Red and Inconclusive (blinking orange). In the end I show you how to use behaviors on buttons to set ...
In this Issue: David Anson, Bart Czernicki, Jesse Liberty(-2-, -3-), Kirupa Chinnathambi, Jeremy Likness, and Martin Krüger. Above the Fold: Silverlight: "New SetterValueBindingHelper sample demonstrates its usefulness on Windows Phone 7 (and Silverlight 4)" David Anson WP7: "Windows Phone From Scratch #6 – Data Binding (Really)" Jesse Liberty MVVM: "Jounce Part 6: Visual States and Multiple Views per ViewModel" Jeremy Likness Shoutouts: Yesterday I mentioned Mindscape's control suite release but ...
The release of the recent update to the Xbox 360’s dashboard has caused quite a commotion among the Xbox LIVE Indie Games (“XBLIG”) community. The primary reasons for this have been a negative response to various changes that have occurred in regards to XBLIG’s look and presence on the Xbox. Unfortunately, what was an “Indie Developers Unhappy With Dashboard Changes” story has been slowly corrupted into a “Microsoft Wants To Kill XBLIG” story. I undoubtedly played a part in that with my post here ...
*Note: This post was supposed to go up a few days ago, but I had internet issues. So after my DLE Flash Cards app was rejected I fixed up my app and then re-uploaded it. I went to the corresponding step in the submission process and uploaded my new xap. My status changed to “Submission in Progress”, and I waited. And waited. And waited. A week went by, and nothing. This seemed really odd. I mean, were they really that backed up in testing submitted apps?! But then my MVP lead, Simran, sent out an ...
My coworker John Sonmez had a great blog post recently illustrating how to refactor a switch statement. In short, he outlined how to take a switch statement covering all known values of a C# Enumeration and convert it into a Dictionary “map” object allowing you to quickly determine what action to take given any valid enumeration value. I really like this approach as I think it leads to more readable code. The one thing that’s always bothered me about enumerations though is that they can change with ...
I would like to invite you to a FREE BizSpark WP7 Developer Day. What: All day Windows Phone 7 Event focused on getting developers up to speed with the tools and technology needed to launch applications into the Marketplace. This event is brought to you by BizSpark and ONETUG. When: Saturday, November 6th Where: DeVry University (4000 Millenia Blvd., Orlando, FL 32839) Register for FREE: http://bizsparkwp7.eventbri... Food: Morning bagels and lunch will be served Schedule Morning Bizspark and ...
In my last post, I introduced TouchToolkit – a toolkit for developing touch-enabled applications. This is the first of a multi-part post where I will explain how TouchToolkit can help simplify the development process of multi-touch applications in Silverlight or WPF 4.0. While we can use the recorded touch interactions (I will explain the recorder module in another post), its better to have a touch-enabled device (e.g. Dell XT2) or an emulator (e.g. MultiTouchVista) to test the application. First, ...
Normal 0 false false false EN-US X-NONE HI MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.000... mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";} Attended the windows phone jump start ...
In WPF, the TreeView control empowers developers with the ability to display hierarchical content with great ease and convenience. However, while load testing a TreeView control, we saw significant slowness on application startup. Contrary to our initial expectations, benchmarks showed that the bulk of the wait time is actually spent binding the data to and updating the TreeView interface while only a few seconds were spent retrieving and building the data model. That led us to learn more about UI ...
Content Reinvention with the Next Generation of Tables, eReaders, and Mobile Devices My notes from this session at Digital Hollywood: Speakers: Sarah Lumbard – Sr. Director, Product Strategy and Development / NPR Digital Media Bill Jensen – Director of New Media / Village Voice Media Mark Ghuneim – CEO / Wiredset Lee Shirani - Google Richard Gingras – CEO / Salon Russell P. Reeder – CEO / LibreDigital – Moderator How to get content to audiences to successfully using these new devices. That is what ...
UPDATED: Feb 16th 2012: Workaround #1 and #2 only works when run-time checking is not enabled. Added workaround #2B which seems to work. Thanks to David S, Michael S and ZbynekZ for pointing this out, and sorry for not responding faster to this. Also added comments and overviews over what happens for different settings. There have been several reports on problems with the Static Code Analysis (SCA) not adhering to the statements of the Code Contract tools. See these links: connect, forum1, forum2. ...
IMPORTANT: Before reading this post open this link and let it play. This is my response to the 2nd Developer Blog Banter. The question asked is How do you organise your tests. Do you separate your unit tests, integration tests and UI tests into separate projects? Do you do anything specific to keep track of your tests? What naming conventions do you use? Do you run them before a check in or is that what the build server is for? The first developer blog banter was about technology stack. I organise ...
At the beginning of September, we launched All-In-One Code Framework Customer Polling Survey. 62 customers filled out the survey in September, and provided lots of constructive suggestions. Thanks to all of you who shared your invaluable feedback! The project can become better and better because of you. Please continue to input your comments. Here is a summary of feedback that we collected in September, and the project team's follow-up action. ------------------------ The top five areas that the ...
The biggest question as a new version of a product or framework comes out is whether an upgrade path from the prior version exists and if the new features introduced are worth the headache and time investment made to upgrade. For ASP.Net MVC 3, the answer is yes to both questions. Personally, I would wait until ASP.Net MVC 3 is officially released, but for those wanting to upgrade right away, details for the upgrade can be found here and are pretty straight forward. Today, I decided to tackle a potential ...
I have been developing TouchToolkit for some time now and just released the October community technical preview (CTP) at the codeplex project website. The key features are: A domain-specific language to define custom gestures (e.g. sample gestures) Supports Windows 7/WPF 4.0 Touch API, Microsoft Surface, Silverlight and TUIO A record/replay module to simplify multi-touch testing and simulate multi-user scenarios A test framework to write unit test for testing gestures (integrated with Visual Studio ...
I wanted to take some time off from my usual (or less than usual) technology blog to post a review of my road bike, the Trek 7.7 FX. I wanted to wait and get some miles on the road before posting any type of review to ensure I’m not in some sort of honeymoon period with the bike. My goal was to post the review after 100 miles, but I am happy to say that tonight, I crossed 200 miles! Before getting into the specifics of the bike itself, let me tell you how I got here. I knew I needed to do something ...
Entity Framework 4 Code First CTP4 was released in July and the API for developing without any edmx continues to mature and get better. Code First allows you to define your entity framework configuration with a Fluent API similar to Fluent NHibernate. Although the API for EF Code First is very user friendly, you should still have integration tests to verify that you’ve configured your entities correctly. This post will walk through configuring EF4 Code First optimistic concurrency. Suppose I have ...
In this Issue: Michael Washington, Alex Knight, Walt Ritscher(-2-), Glenn Block, Robert Garfoot(-2-), Michael Klucher, Silverlight WP7 Performance Team, Mike Ormond, and James Ashley(-2-), Above the Fold: Silverlight: "Using The Silverlight Data Pager Control With View Model / MVVM" Michael Washington WP7: "Simulated Push Notifications on Windows Phone 7" Robert Garfoot Blend: "How to: design a Windows Phone 7 listbox" Alex Knight Shoutouts: Mike Ormond posted his material that he used for some presentations ...
If you're working with healthcare EDI transactions in BizTalk, then you need to be thinking about the upcoming 5010 transaction set implementation. In a nutshell, the 5010 transaction set introduces anywhere from dozens to hundreds of changes (depending on the individual transaction) and paves the way for the upcoming ICD-10 implementation. The timeline for transition is as follows: Jan 2009 Begin Level 1 activities (gap analysis, design, and development) Jan 2010 Begin internal testing for HIPAA ...
I recently was testing some new functionality in a BizTalk solution by adding it to a second orchestration (before I went screwing around with my main one...) and received an error in the event log when dropping a file to the receive location: "xlang/s engine event log entry: Failed while creating a <Orchestration Name> service." (the full stack trace is shown at the end of this post) So, I tried to simplify things - I deleted that orchestration and started a new one, with just send and receive ...
I’ve blogged about the tools and have played with the hardware, now its time to put an application on the actual Windows Phone 7 hardware. I will guide you through the entire process step-by-step. Please note that I have an early version of the phone and had to get a Connect Login to download Zune 4.7. If you are reading this after the phone has launched then you can probably just go to the Zune web page and download it directly. You will also want to skip down until the next section that starts ...