Tag Archive for 'Windows 8'

Page 2 of 3

September 27, 2011

Running unit tests in Visual Studio 2011 and Windows 8 (WinRT)

This is a quick tip, because it confused me at first. But thanks to the always excellent Tim Heuer and Peter Provost (from the Visual Studio team), here is the answer:

Usual disclaimer: This is for XAML/C#. I am not sure how this works for the other programming stacks.

Creating unit tests for your WinRT application/library

  • Start Visual Studio 2011.
  • Create a new project.
  • From the Add New Project dialog, select Unit Test Library (In the Visual C#/Windows Metro Style category). Give a name to the project and press OK.
  • Either open the unit test class that was created, or create a new class. No need to select a fancy template, just create a new empty class.
  • Decorate the class with a [TestClass] attribute.
  • Create a public method with no parameters, and decorate it with a [TestMethod] attribute.
  • Right click on the unit test project and select Add Reference from the context menu.
  • In the Reference Manager, select Solution and then the project you want to write tests for. Then press Add and then Close.

You can now write your tests, using the usual Assert syntax. Here is a simple example.

01.[TestClass]
02.public class UnitTest1
03.{
04.    [TestMethod]       
05.    public void TestAlwaysPass()
06.    {
07.        const string expected = "Any text";
08.        var myClass = new ClassLibrary1.Class1(expected);
09.
10.        Assert.AreEqual(expected, myClass.Parameter);
11.    }
12.
13.    [TestMethod]
14.    public void TestAlwaysFail()
15.    {
16.        const string expected = "Any text";
17.        var myClass = new ClassLibrary1.Class1(expected);
18.
19.        const string notExpected = "Another text";
20.        Assert.AreEqual(notExpected, myClass.Parameter);
21.    }
22.}

Running the unit tests

To run the unit tests you just wrote, follow the steps:

  • Select the menu View / Other Windows / Unit Test Explorer.

Build your application. You should now see the unit tests you wrote in the explorer window.

Press Run All to run all the unit tests.

Hopefully this quick tip will be helpful!

Cheers

Laurent

September 27, 2011

Windows 8 Tablet – First Impressions of Samsung’s 700t

The IdentityMine team recently returned from Microsoft’s Build conference in Anaheim, CA with a few goodies. As some of you may have heard, all Build attendees received the developer version of Microsoft’s Windows 8 Samsung tablet – we were lucky enough to bring back a few of the 5000 handed out.

First off, lets get to the brass tacks of this tablet. The Samsung 700t sports an Intel Core i5 processor, an 11.6 inch screen at 1366 x 768, a UEFI BIOS, 4 GB of RAM, 64 GB SSD, sensors, USB, micro SD, HDMI, pen, and a dock with USB, HDMI, and Ethernet. The picture below makes the Samsung 700t look like a desktop, which I love because I want my slate to perform exactly like a desktop PC and be as mobile as my smartphone.

Today, I got a chance to sit down and take a look at the Samsung 700t, so I thought I would write a short post about my first impressions.

First off, the touch optimization is incredible and the stylus included is great for jot down notes. It was extremely easy to take notes on the tablet like I would on a piece of paper, especially with the handwriting recognition software – it would even correct misspelled words that I hand wrote! As a test, I spelled out “wortd”, and the program recognized I misspelled a word and auto-corrected it.

Skype worked perfectly for video chat, but Skype messenger is not optimized for the tablet – the on-screen keyboard takes up half of the screen. The front a rear facing cameras are perfect for Skype, but the tablet freezes up when switching between the two cameras.

Now, let’s get on to the form factor itself; the body is strong – nothing feels cheap and the plastic feels and looks like  like aluminum. The screen does reflect a lot of light, though I’m sure this can be fixed with anti-scratch, tinted film. The Samsung 700t tablet has speakers built in, which sounded great when tested with a movie. The dock that came with the tablet includes an output for headphones/speakers, which makes it incredibly handy to use as a bed-side music station.

        

Microsoft’s new Arc Touch Mouse is incredibly ergonomic; it bends to become flat or round like a traditional mouse (although this is not part of the tablet, I did use it while in desktop mode). Microsoft really thought of everything when they created this mouse. On the back, there is a magnet that holds the wireless USB receiver so it wont get lost. Awesome huh?

One thing that I thought was strange was that the start menu and the desktop seem to have a split personality. Our Senior UX Developer, Laurent Bugnion, has an entire blog post dedicated to that so I won’t delve to deep into the subject. I will, however, comment on the fact that the Start menu has a Metro style UI, which I thought would be carried over to the desktop mode, but sadly, this did not happen. The desktop is basically a touch-enabled Windows 7 OS. The major UI change from the Start menu to the desktop mode has me wondering what direction Microsoft is trying to take the Samsung 700t tablet. However, this could all change when the production model is released to consumers.

Overall, I loved the Samsung 700t tablet and would definitely consider it over many other tablets out today. I really can’t wait to see what changes and improvements Microsoft makes to this tablet in the coming months.

 

 

September 20, 2011

Windows 8 Compatibility With Mobile Devices

The IM team is just back from an exciting week at the Microsoft Build Conference where early details about Windows 8 were revealed to the developer community.  We are thrilled with much that we heard there, particularly about Windows 8 compatibility with mobile devices.

Laurent Bugnion

The news is good and we are pretty excited to see IdentityMine’s own Laurnet Bugnion quoted in this USA Today article. Of course there is a lot yet to digest, however we see a fantastic future for mobile device applications on Windows 8 with a multitude of great options for developers.  You can read more about Laurent’s thoughts on the future of Windows 8 here.  Stay tuned for an exciting ride to come…

September 19, 2011

Windows 8 to Allow Phone Calls?

It seems like Windows 8 will allow phone calls on tablets – judging by the screen shot below. Though it is still unclear how this will be possible, the acquisition of Skype may have something to do with it. This is all purely speculation, as it may just turn out to be a reminder to check your Windows Phone for a missed call. Lets hope Microsoft has something up its sleeve to impress tablet consumers in 2012!


September 14, 2011

Microsoft BUILD Conference Day 2 Keynote

It’s day 2 of Microsoft’s BUILD conference, and it’s going to be all about Server and tools. Today’s keynote speakers are going to be Satya Nadella, the President of Microsoft’s Server and Tools Business unit, and Jason Zander, Corporate Vice President of Visual Studio.

 

Watch it live HERE