Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
<?xml version="1.0" encoding="utf-8" ?> <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> <CodeSnippet Format="1.0.0"> <Header> <Title>Assert Equality</Title> <Shortcut>ae</Shortcut> <Description>Code snippet for asserting equality</Description> <Author>Matt Grande</Author> <SnippetTypes> <SnippetType>Expansion</SnippetType> </SnippetTypes> </Header> <Snippet> <Declarations> <Literal> <ID>expected</ID> <ToolTip>The expected value</ToolTip> <Default>expected</Default> </Literal> <Literal> <ID>actual</ID> <ToolTip>The actual value</ToolTip> <Default>actual</Default> </Literal> </Declarations> <Code Language="csharp"> <![CDATA[Assert.AreEqual($expected$, $actual$);]]> </Code> </Snippet> </CodeSnippet> <CodeSnippet Format="1.0.0"> <Header> <Title>Assert True</Title> <Shortcut>ait</Shortcut> <Description>Code snippet for asserting truth</Description> <Author>Matt Grande</Author> <SnippetTypes> <SnippetType>Expansion</SnippetType> </SnippetTypes> </Header> <Snippet> <Declarations> <Literal> <ID>true</ID> <ToolTip>The value to compare to true</ToolTip> <Default>true</Default> </Literal> </Declarations> <Code Language="csharp"> <![CDATA[Assert.IsTrue($true$);]]> </Code> </Snippet> </CodeSnippet> <CodeSnippet Format="1.0.0"> <Header> <Title>Assert False</Title> <Shortcut>aif</Shortcut> <Description>Code snippet for asserting falsity</Description> <Author>Matt Grande</Author> <SnippetTypes> <SnippetType>Expansion</SnippetType> </SnippetTypes> </Header> <Snippet> <Declarations> <Literal> <ID>false</ID> <ToolTip>The value to compare to false</ToolTip> <Default>false</Default> </Literal> </Declarations> <Code Language="csharp"> <![CDATA[Assert.IsFalse($false$);]]> </Code> </Snippet> </CodeSnippet> </CodeSnippets>
This paste will be private.
From the Design Piracy series on my blog: