How can I test void methods? I have some void methods and I need to test them, but I'm not sure about how to do it. I just know how to test methods that return something, using Assert. Someone knows how to do it? Do you guys know some links with exercices in this style?
Unit testing void methods? What is the best way to unit test a method that doesn't return anything? Specifically in c#.  What I am really trying to test is a method that takes a log file and parses it for specific strings. The strings are then inserted into a database. Nothing that hasn't been done before but being VERY new to TDD I am wondering if it is possible to test this or is it something that doesn't really get tested.
Input password into SSH without typing Using Illustrator CS6 to create shape out of multiple paths I am very new to Illustrator, in fact I am only experimenting with it in an attempt to help my friend develop a logo for a new business venture. I managed to draw out the shell of the logo using the line tool and modifying the lines with the anchor tool to get the shape I wanted.  However, I would like to somehow take all of these paths and create one object, or symbol which I can then apply a drop shadow, fill and various other effects too. Currently when I try to do this I get unwanted effects...  I'd appreciate any help on the subject. iCloud says Password is Wrong Even Though I Know It's Right iCloud says that my password is wrong - even though I know it's right.  Here's whats happened: Yesterday, I reset my iCloud password. Got the reset email, changed password. Tried to log in to the account, didn't accept it. I thought that maybe my finger had slipped typing in the password (twice). I called support, got the reset email.  Now, here's the really, really weird thing: I wanted to make sure I got the password right - so I typed my password into TextEdit, copied it into the reset fields and reset the password. After reseting it, I immediately went to icloud.com and tried to log in using the copied password from TextEdit. The passwords are the same. iCloud won't let me in. How to install .bundle packages in Ubuntu? After upgrading from Ubuntu 13.04 server, the www pages won't display themselves.     Error 403 Forbidden You don't have permission to access / on this server.   I've changed access control saves from apache2.2 to apache2.4, but that didn't work. What else could I do? Should I sign, watermark or otherwise label a framed print? And if so how? I have an opportunity to show some of my work in a small local coffee shop.  Are there any guidelines/practices to signing, labeling or watermarking a photo which is to be on display?  Or should a photo be signed, labelled or marked at all? Is signing the back of the photo and showing my name on a separate card below the frame itself the "better" way to do this?   I noticed many people on the web put a very noticeable watermark with their logo, copyright and name right on the photo.  Personally, I find this distracting as it often ruins the photograph itself often turning what could be art to kitsch. Painters most often sign the painting itself but this to me is not distracting because it is done with the painter's own hand and it often "works" with the painting. I have sucessfully installed AniMove by activating experimental plugins (yay! thanks gis.stackexchange). But I can't find it in Qgis! Yes I have activated it. Where is it? Is this a common bug? I searched for it the toolbox, I looked up the names of the several single tools based on this  and only found "Kernel Density", which is filed under SAGA. But I don't have SAGA installed (and don't know if I need to?) How can I run an external program from C and parse its output? I've got a utility that outputs a list of files required by a game.  How can I run that utility within a C program and grab its output so I can act on it within the same program? UPDATE: Good call on the lack of information.  The utility spits out a series of strings, and this is supposed to be portable across Mac/Windows/Linux.  Please note, I'm looking for a programmatic way to execute the utility and retain its output (which goes to stdout). What is the difference between a static and a non-static initialization code block Proof that two spaces that are homotopic have the same de Rham cohomology I know this is true, but how do I prove it? Specifically, I'm trying to calculate the de Rham cohomology of the 3-sphere by using the Mayer-Vietoris sequence and covering $S^3$ with two hemispherical sets $U, V$, such that $U$ intersects $V$ in a "2-band", an equatorial band homotopic to a 2-sphere. Why isn't sizeof for a struct equal to the sum of sizeof of each member? Why does the sizeof operator return a size larger for a structure than the total sizes of the structure's members? Why did Obi-Wan Kenobi choose that moment to appear to Luke? In The Empire Strikes Back, Luke Skywalker violently escapes from the lair of a wampa ice creature, finds himself in the middle of a life-threatening snowstorm on an inhospitable planet, collapses from cold and fatigue, and will likely be dead in a few minutes. As :     Luke lies face down in the snow, nearly unconscious. Slowly he looks   up and sees Ben Kenobi, barely visible through the blowing snow. It is   hard to tell if Kenobi is real or a hallucination.     Why did Obi-Wan Kenobi choose this moment to appear to Luke and deliver rather important instructions concerning next steps in his Jedi training?  It seems lucky that Luke remembered anything of the encounter at all. He probably thought he was hallucinating. Get latest Flash player on Ubuntu I know, it's been asked before but I couldn't really get a satisfying answer for some details/backgrounds and I guess it's an important question for many.    Some application seem only to be running with Adobe Flash 15 (or at least I know it does, because I have that version on my Windows Partition).  The official Adobe website says:     NOTE: Adobe Flash Player 11.2 will be the last version to target Linux as a supported platform. Adobe will continue to provide security backports to Flash Player 11.2 for Linux.   Some search on the web like "Ubuntu Adobe Flash 15" or similar does not return any good websites.  I found something that says   (using a "pepper-based version"), and  .   Is it impossible to use this for Firefox too? Would it be a privacy risk?  Are there no alternative projects (I know it's closed source but there are so many so very bright people out there using something similar to wine but just for the plugin....)?  How about the Mac-Version? Shouldn't someone be able to port that one to Linux? Text in an equation This is best explained by example. Suppose I have the following:  \[     \begin{align*}     C_3 \rightarrow 6 automorphisms\\     C_4 \rightarrow 8 automorphisms\\     C_5 \rightarrow 10 automorphisms     \end{align*} \]   How can I get the word "automorphisms" to display as if it were not enclosed by the brackets? In The Winter Soldier, who did Peggy Carter say she married? When Steve Rogers visits Peggy Carter, she has a family photo on her nightstand and says that she married someone after Cap disappeared. Who did she marry? What is the use case for a Fragment with no UI? Expected number of hamiltonian paths in a tournament The following theorem is from Alon&amp;Spencer's The probabilistic method, in the beginning of chapter 2:  Theorem 2.1.1: There is a tournament $T$ with $n$ vertices and at least $\frac{n!}{2^{n-1}}$ Hamiltonian paths.  Briefly the theorem is proved by looking at $X_\sigma$ the indicator random variable for a permutation $\sigma$ giving a Hamiltonian path, that is, satisfying $(\sigma(i),\sigma(i+1))\in T$ for $1\leq i \lt n$. Then   $\sum \mathbb{E}\left[X_\sigma\right] = \frac{n!}{2^{n-1}}$.  I don't understand where did this value ($\frac{n!}{2^{n-1}}$) came from! could someone explain it please? Understanding QGIS buffer tool units How to make a half cylinder? I am having a tough time building a half cylinder and have not found any tutorial showing me how to do that. Look at this if block:  #!/bin/bash  str="m.m" if [[ "${str}" =~ "m\.m" ]]; then     echo "matched" else     echo "not matched"     exit 1 fi  exit 0   This should print "matched", but it doesn't. Where am I going wrong?