﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>pb commented on NHProf: Alive! It is alive!</title><description>Instead of checking the SQL string, check what the SQL string is based on so it isn't dependent on formatting changes, those auto generated aliases, etc., Maybe something like:
  
  
Assert.IsTrue(selectBlogById.HasTablesExact(new string[] {
  
    "Blogs"
  
}));
  
  
Assert.IsTrue(selectBlogById.HasColumnsExact(new string[] {
  
    "Id",
  
    "Title",
  
    "Subtitle",
  
    "AllowsComments",
  
    "CreatedAt"
  
}));
  
</description><link>http://ayende.com/3647/nhprof-alive-it-is-alive#comment8</link><guid>http://ayende.com/3647/nhprof-alive-it-is-alive#comment8</guid><pubDate>Wed, 15 Oct 2008 19:20:20 GMT</pubDate></item><item><title>Ayende Rahien commented on NHProf: Alive! It is alive!</title><description>pb,
  
Can you explain more? I don't think that I follow you
</description><link>http://ayende.com/3647/nhprof-alive-it-is-alive#comment7</link><guid>http://ayende.com/3647/nhprof-alive-it-is-alive#comment7</guid><pubDate>Wed, 15 Oct 2008 13:51:18 GMT</pubDate></item><item><title>pb commented on NHProf: Alive! It is alive!</title><description>I was thinking more along the lines of Query.HasColumns(new string[] { "Column1", "Column1").IsForTable("SomeTable"), etc.
</description><link>http://ayende.com/3647/nhprof-alive-it-is-alive#comment6</link><guid>http://ayende.com/3647/nhprof-alive-it-is-alive#comment6</guid><pubDate>Wed, 15 Oct 2008 13:46:54 GMT</pubDate></item><item><title>Ayende Rahien commented on NHProf: Alive! It is alive!</title><description>Ken,
  
This is going to be commercial, so I don't think so
</description><link>http://ayende.com/3647/nhprof-alive-it-is-alive#comment5</link><guid>http://ayende.com/3647/nhprof-alive-it-is-alive#comment5</guid><pubDate>Mon, 13 Oct 2008 08:19:45 GMT</pubDate></item><item><title>Ken Egozi commented on NHProf: Alive! It is alive!</title><description>Is the code available anywhere? 
</description><link>http://ayende.com/3647/nhprof-alive-it-is-alive#comment4</link><guid>http://ayende.com/3647/nhprof-alive-it-is-alive#comment4</guid><pubDate>Mon, 13 Oct 2008 07:19:14 GMT</pubDate></item><item><title>Krzysztof Koźmic commented on NHProf: Alive! It is alive!</title><description>Maybe it's time to introduce WhitespaceIgnoringStringComparer ? To NUnit, not Ayende's tool.
</description><link>http://ayende.com/3647/nhprof-alive-it-is-alive#comment3</link><guid>http://ayende.com/3647/nhprof-alive-it-is-alive#comment3</guid><pubDate>Mon, 13 Oct 2008 07:10:05 GMT</pubDate></item><item><title>Cory Foy commented on NHProf: Alive! It is alive!</title><description>Not even formatting changes. This test *will* fail on Mono/Linux unless the code is compiled because all of those newlines are \r\n and Linux would be \n. Trust me - that was one of the most difficult challenges we faced with getting NUnit running. System.Environment.NewLine is your friend:
  
  
[www.cornetdesign.com/.../...nvironmentnewline.html](http://www.cornetdesign.com/2006/03/importance-of-systemenvironmentnewline.html)</description><link>http://ayende.com/3647/nhprof-alive-it-is-alive#comment2</link><guid>http://ayende.com/3647/nhprof-alive-it-is-alive#comment2</guid><pubDate>Mon, 13 Oct 2008 00:29:11 GMT</pubDate></item><item><title>pb commented on NHProf: Alive! It is alive!</title><description>Would you consider the test to be overspecified since formatting changes would break this test which tests functionality? 
</description><link>http://ayende.com/3647/nhprof-alive-it-is-alive#comment1</link><guid>http://ayende.com/3647/nhprof-alive-it-is-alive#comment1</guid><pubDate>Mon, 13 Oct 2008 00:19:54 GMT</pubDate></item></channel></rss>