Bookmark and Share

JustMock Q2 2011 SP1 Internal Build

A new internal build of Telerik JustMock was recently released with several new features and fixes.

What’s New

  • Support of Raise event and ability to mock explicit interface implementation in Future Mocking.
  • Ability to do Mock.AssertAll(foo) /foo.AssertAll() [when Telerik.JustMock.Helpers is used] that will assert all the arrange regardless of MustBeCalled specified.
  • Make Single Parameter Declaration in Returns optional.
  • Support of up to 16 parameters similar to .NET 4.0 in Returns and DoInstead Delegate.

What’s Fixed

  • InOrder is not working as expected when applied on setups with similar member.
  • Support of manually creating instance of nested type.
  • For stub it should be possible to set property value multiple times.
  • Failed to create instance EntityFramework.ObjectResult due to exception in intercepting non generic IListSource member from generic Table.
  • Problem mocking Microsoft.Exchange.WebServices.Data.EmailAddressCollection.GetEnumerator() - fails with TypeLoadException.
  • Resolve Nested mock setups from TestInitalize for final / static methods.
  • Exception when intercepting generic constructor using profiler for Constructor.Mocked switch or Sealed class.
  • Null reference in ReturnsColleciton for class with List or Colleciton base.
  • Auto arrange property getter for stub when already invoked but not arranged.

I plan on posting a more comprehensive article soon (on blogs.telerik.com) detailing the changes. Tell me what you want to see in this update or in the future and I will work it in! Keep in mind that the roadmap for mid-Fall includes support for Silverlight mocking with profiler, HttpContext mocking in nested classes, and improvements to Fluent Assertions. I will be covering these in the webinars and blogs leading up to the 2011 Q3 release of JustMock.

Bookmark and Share

Updating JustTrace and Sending Feedback

The JustTrace team releases internal builds on a regular basis, and you can easily obtain these through the JustTrace console. Just click the the Check for Updates button, and make sure the checkbox is set to check for internal builds.

JustTraceUpdate2

The latest internal build, version 2011.2.823.0, gives you the capability to send feedback directly to the team. This is perfect if you’re encountering an issue or just want to give the team a compliment. The Send Feedback button is located below the update button once you’ve updated JustTrace.

JustTraceSendFeedback

This build primarily contains improvements to the IIS profiling, the tracing and memory profiler, stability, and performance. If you need a .net profiler or are simply curious about your application’s memory usage and performance, download the free 60-day trial. If you have questions, you know how to reach us!

Bookmark and Share

Skype for iPad

I work for an international company and sometimes find myself in different parts of the globe. International calling can be expensive, so I use Skype to keep connected with my coworkers, friends, and family. It does cost money to call to land lines, but the price is comparable to buying a calling card. It’s a convenience I can’t do without.

I use always have my laptop with me, which luckily has a webcam and microphone. But if you’re the type to carry around a tablet (iPad in particular), you can now connect with that as well. It feels almost like you’re in a sci-fi movie… only I don’t recall them doing anything like this in Star Trek. The best part, the app is free!

I find this somewhat amusing since Microsoft has acquired Skype. Is this Microsoft’s first iPad app?

Bookmark and Share

The Time is Now to Try JustTrace

With Telerik’s Q2 2011 release cycle, JustTrace is out of beta and commercially available. It features a modern and intuitive user interface to profile your application’s memory usage and performance. To celebrate the release, it’s being offered at 50% off for a limited time. A fully-functioning 60-day trial is available, and it comes with Telerik’s well-known, dedicated support.

Telerik is also well-known for its documentation, and it’s available to get you started. If you want to get going quickly, you can enable profiling directly from within Visual Studio and view the live data. You can then take performance snapshots and compare them.

At times, you may need to run things outside of Visual Studio. The standalone GUI allows you to access previous snapshots, previous profiling sessions, and start a new session. It’s very handy for profiling Windows Services or applications running in IIS.

Here’s what the standalone GUI looks like:

JustTraceGUI

The tab well on the left contains session or snapshots from a session. It’s handy in case you’re working with multiple sessions or applications. The top left panel contains the button to begin a session and a history of recently profile applications. They can be accessed to start another session with the same information as before. The bottom left panel contains a snapshot history. If you have snapshots saved elsewhere, you can access them as well with the Open Snapshot button. This is useful when having another team member analyze the results from a session. The scenario where one might do this is easy to imagine: performance issues are occurring on one developer box and not others.

The right side contains shortcuts for documentation, the included example application, and to update JustTrace.

Here’s what a snapshot looks like:

JustTraceHotSpots

With this performance snapshot, you can quickly find methods that are underperforming or doing too much work.

Download the trial today and explore your own applications. You may be surprised at what you can find and fix with JustTrace!

Bookmark and Share

Build a Windows Phone 7 App and Give Back To Your User Group

The promotion from Telerik is almost over, so if you want to take advantage it: get free windows phone controls, and earn $100 bucks for your local user group, not is the time to get the application Submitted. The deadline is currently set to May 31st June 10th EST.

If you’re not aware of this promotion, Here are the simple steps from the website:

  1. Develop a Windows Phone 7 app using Telerik RadControls for Windows Phone 7 and PreEmptive Solutions Runtime Intelligence for Windows Phone
  2. Submit your app to WP7 marketplace
  3. Ask your user group leader to notify Telerik (usergroupcompetition@telerik.com) of your published application and the user group will receive 100 USD to help in its annual expenditures.

When this began, the controls were in beta and everyone was free to release them. Since Telerik’s RadControls for Windows Phone 7 are now released, there’s another step.

  1.5.  Before you submit the application, email usergroupcompetition@telerik.com with your name, application name, and user group name to obtain a license for the Windows Phone 7 Controls.

Since you can get it for free, and help out your user group, now is the time to jump on this. If you need a compelling reason to use the controls, download the Telerik Examples application from the marketplace and be amazed. Personally, even when I don’t use the actual controls, I take advantage of the animation framework for transitions. It’s as simple as switching in the PhoneApplicationFrame with RadPhoneApplicationFrame in App.xaml.

The terms are pretty straight forward, and it’s a really good deal. It’s the perfect time to dust off those sample projects and turn them into real WP7 apps!

**UPDATE**

The deadline was extended to June 10th. Get those apps in!

Bookmark and Share

Losing Free Reflector? Try JustDecompile!

When Red Gate announced that .NET Reflector would no longer be offered as a free product, I wrote that this would be good for the community. Reflector has been a staple product for years, but there was little reason for anyone to offer alternatives as it was a solid product and free.

In a short few months, competitive products have been announced and a few have been released. I wrote about the decompile feature in JustCode, which is an innovative method of decompiling your code directly within Visual Studio. However, a standalone product is desired. We don’t always want to navigate assemblies from within Visual Studio, and an interface specifically designed to navigate and decompile assemblies is valuable when taking a journey through the .NET framework, a new product, or mystery libraries.

Telerik recently announced a new product: JustDecompile. It is guaranteed to be free for everyone, free forever: there are no time bombs. You can download the beta from the product page. I must say, out of the alternatives I’ve looked at, I believe JustDecompile has the smoothest user interface. Here is the main screen when you open the application.

JustDecompile1

That definitely has a xaml, more modern feel to it. Opening an assembly is as you would expect: click open or drag an assembly onto the assembly panel. However, I like browsing the framework for ideas. There are more options that can be accessed by expanding the arrow.

JustDecompile2

In this beta, there are three available options for Framework assemblies: .NET 2.0, .NET 4.0, and Silverlight. Clicking one populates the assembly list.

JustDecompile3

You have likely noticed another option by now: Assembly List. This allows you to create and load your own lists of assemblies. This is useful when working in different contexts.

One thing I find incredibly useful is that the platform profile of the assembly is in parentheses next to the name. I’ve sometimes looked through differences between versions of assemblies and having this quick reference helps keep me on track.

Here’s a screenshot with a class decompiled:

JustDecompile4

The Go To Type and Go To Symbol are reminiscent of the same functionality within JustCode. I am very impressed by the speed in which it searches.

JustDecompile5

Telerik JustDecompile is beta and there are many features that will make it better. You can help Telerik decide which features to focus on at User Voice. Currently, the number one suggestion is to allow assembly editing!

Download JustDecompile today. It’s free for everyone, free forever!

Bookmark and Share

You Should Use NuGet

One of the best features in Visual Studio 2010 is the Extension Manager. It allows you to download, install, disable, enable, and uninstall a variety of extensions for Visual Studio without leaving the IDE. You can access Extension Manager through the Tools menu.

nuget1

Selecting the Extension Manager will bring you to a dialog containing your installed extensions and an online gallery. The gallery contains many excellent free extensions like the Power Productivity Tools, and it contains commercial products such as Telerik JustCode. It also contains updates to installed extensions, which saves you time from hunting them down yourself. Go to the online gallery to find new extensions to enhance Visual Studio. One of the best extensions to come out recently is NuGet Package Manager.

nuget2

NuGet is similar to the Extension Manager, but instead of allowing you to install extensions for Visual Studio, it allows you to add libraries to existing projects without the hassle of downloading, installing, and in some cases, configuring them.

To get started, right-click your project references. A new item will appear in the popup menu: Add Library Package Reference. Selecting this will bring up the NuGet Package Manager.

nuget3

Installing a package will give you access to it in your project and unpack everything to the appropriate locations… this is much better than downloading a zip and placing the pieces of the package in requisite folders within the project! In addition, NuGet will inform you when updates are available for the packages that are installed through it.

If you’re working on an MVC application, try out the open source Telerik Extensions for ASP.NET MVC to gain access to very nice, jQuery-enabled, fluent controls.

Bookmark and Share

Decompiling Made Easy

Using the soon to be not-so-free version of .NET Reflector requires one to launch the program, open an assembly, and browse to the appropriate class or method. This is fine when you only want to see how the internals of something are working, and you’re not browsing to it from code. But, it can be extremely annoying when you’ve hit F12 one too many times and you’ve arrived at a class that resides in an external assembly.

JustCode will soon make this an easy problem to solve. When you’ve arrived at that piece of code, just click the Decompile menu option (or use whatever the hotkey ends up being).

1_(6)

This is then decompiled to the code you would expect to see.

2_(3)

Vassil Terziev is showing off new features as they’re baked in. I can’t wait for this to be in the released JustCode product; it’s one of those things that after you get used to it, you wonder how you got along without it (like mobile phones or GPS).

Bookmark and Share

Copy-Paste and New Features for Windows Phone 7

An update for the Windows Phone 7 developer tools have been released. It includes the long coveted copy and paste feature, enabled on TextBox, PasswordBox, and text input fields within the WebBrowser control.

The updated Bing Maps control has improved gesture performance.

This release also includes two tools that are new to the main package: the Windows Phone Connect Tool that many of us are already familiar with, and the Windows Phone Capability Detection Tool. The latter analyzes your application to determine which phone capabilities are required. In this past, this has been a rather opaque process (the capabilities you say it needs aren’t actually used). A developer I know had his application requiring capabilities that he wasn’t using. This tool will help him determine why this requirement is being detected.

An important fix is included for those developers creating large application. You can now debug and test XAP files over 64 MB on a device.

The new features, such as copy and paste, will not be available on the individual phones until it is updated. Keep this in mind if you receive complaints that certain features aren’t working in your application.

 

Note: I downloaded the tools and installed them. Copy and paste isn’t working for me.

Bookmark and Share

Reflector No Longer Free

Red Gate surprised the .NET community today by announcing that .NET Reflector will become a paid product. In March, version 7 will be released with a $35 price tag. Unfortunately, current versions of Reflector are set to expire on May 30th.

Good for the Community

At first glance, this is bad for developers. I often use Reflector to find out what’s happening behind the scenes of an assembly, and I sometimes demonstrate this and encourage others to make it part of their toolset. $35 isn’t a lot of money, but people working from home will be less likely to try it out and discover the benefits that knowledge brings.

I have long derided the preponderance of free applications in the iPhone marketplace. The presence of them stifles competition and gives many fewer choices. Why develop an app when it can’t compete? The effect of making Reflector a paid product is that it will generate competition. I’ve considered writing a Reflector-like program myself, but there was no point to it since the original was free, easy-to-use, and worked for almost every scenario I needed.

I predict competition will be coming from commercial (there’s already a teaser for one) sectors to the open source community.

Bad for Red Gate

I understand why Red Gate made this decision. After all, they were supporting a program for 2 years with no revenue. However, they pretty much had a lock on the market. That lock will be removed, losing them potential customers for other products. The value isn’t in revenue generation, the value is in proliferation and clients for other products.

The best tactic would have been to make a Community edition for free; with restrictions on business use. Then charge $35 (or even a hundred) for the standard edition.

We have until May 30th to make a decision whether to purchase Reflector 7 or find an alternative.

KodefuGuru.GetInfo()

Chris Eargle
LinkedIn Twitter Technorati Facebook

Chris Eargle
Telerik Developer Evangelist, C# MVP

JustCode

Telerik .NET Ninja

 

INETA Community Speakers Program

 

MVP - Visual C#

 

Friend of RedGate

World Map

Tag cloud

Month List

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2010
Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer’s view in any way.