Xunit and dynamic

Сентябрь 26, 2016

1

Working with XML serialization, I need to create object with several public properties taken from complex «parent» object, and its class is created on the fly via reflection. Full code is accessible on GitHub Blog repository. The following MSDN’s topic contains an example of the creating dynamic class with public property. Let me list sample code that creates […]

Метки: , ,
Posted in: C#, Разработка

Square WPF user control

Август 14, 2016

0

Normal window

In this post I would like to provide code for simple Wpf user control that fills as much space as possible but preserve square form. For demonstration I used 3D-look ellipse described in this post. Full code is accessible on GitHub Blog repository. Described control looks in the following way: Size of ellipse is controlled […]

Posted in: C#, Разработка, Wpf

Simple thread-safe class

Август 8, 2016

0

Let’s write thread-safe class with two properties: — logical property «State» describes state of the object; — numeric property «Count» counts how many relative objects including current one has TRUE state. First approach gives us the following class: Full code is accessible on GitHub Blog repository. This class is not thread-safe that could be easily […]

Xunit and exceptions with async Task

Июль 31, 2016

0

Recently, I wrote Xunit tests for business object that requires to catch exceptions generated by wrong property values in synchronous and asynchronous calls. This post includes several examples and full code is accessible on GitHub Blog repository. Here I will use approach described in Richard Banks’ post Stop Using Assert.Throws in Your BDD Unit Tests […]

Метки: , ,

Защищено: Проект CVHolder

Январь 11, 2016

Введите пароль для просмотра комментариев.

Отрывка нет, потому что запись защищена.

Метки: ,

MS SWIT 2014 — day #2

Апрель 1, 2014

2

В пятницу прошел второй, заключительный, день конференции MS SWIT 2014 (впечатления от первого дня описаны ранее). Этот день получился немного спокойнее, что хорошо, так как посещаемость снизилась. На ключевом докладе Сергей Руденко рассказал об успехах и планах компании Nokia на рынке мобильных телефонов, затем были доклады Сергея Байдачного, Дмитрия Миндра, Виктора Шатохина, Сергея Бельского и […]