Home

Старое криведко's Journal - Day

Wednesday, May 2, 2007

4:14PM - Технический вопрос про .Net & WPF...

Dear lazy web...

А кто-нибудь может подсказать направление, в котором копать по поводу юнит-тестирования RoutedEvent'ов в .NET'е?

Для примера:
У меня есть

public class TheClass : Control
{
   public TheClass()
   {
      Drop += handleDrop;
   }

   public void handleDrop(object sender, DragEventArgs e)
   {
      // кучка кода ...
   }
}


Вот как мне написать юнит-тест на handleDrop, учитывая, что DragEventArgs не имеет публичных кострукторов и объявлен sealed...

5:45PM - 21 век на дворе...

Крах всех надежд, 6 букв, вторая "и".

А что, в дотнете действительно нет поддержки локализации "из коробки"??? Ибо то, что там есть на поддержку не особо канает. Ибо сделать "1 письмо", "2 письма", "5 писем" не позволяет совсем.

8:35PM - Digg This: 09-f9-11-02-9d-74-e3-5b-d8-41-56-c5-63-56-88-c0


Today was an insane day. And as the founder of Digg, I just wanted to post my thoughts…

In building and shaping the site I’ve always tried to stay as hands on as possible. We’ve always given site moderation (digging/burying) power to the community. Occasionally we step in to remove stories that violate our terms of use (eg. linking to pornography, illegal downloads, racial hate sites, etc.). So today was a difficult day for us. We had to decide whether to remove stories containing a single code based on a cease and desist declaration. We had to make a call, and in our desire to avoid a scenario where Digg would be interrupted or shut down, we decided to comply and remove the stories with the code.

But now, after seeing hundreds of stories and reading thousands of comments, you’ve made it clear. You’d rather see Digg go down fighting than bow down to a bigger company. We hear you, and effective immediately we won’t delete stories or comments containing the code and will deal with whatever the consequences might be.

If we lose, then what the hell, at least we died trying.

Digg on,

Kevin


Digg This: 09-f9-11-02-9d-74-e3-5b-d8-41-56-c5-63-56-88-c0

1. Digg -- молодцы. Действительно уважаю.

2. "Только белый человек наступает на одни и те жу грабли дважды" © какой-то старый анекдот.

3. Слово не воробей, вылетит - непоймаешь:

Previous day (Calendar) Next day

Advertisement