private void DisplayAssemblyInfo() { Assembly asmb = Assembly.GetExecutingAssembly(); AssemblyInformation info = new AssemblyInformation(asmb); txtOutput.Text = txtOutput.Text + System.Environment.NewLine + info.ToString(); }
private void button2_Click(object sender, EventArgs e) { DialogResult result = openFileDialog1.ShowDialog(); if (result != DialogResult.Cancel) { txtFileName.Text = openFileDialog1.FileName;; AssemblyInformation info = new AssemblyInformation(txtFileName.Text); txtOutput.Text = txtOutput.Text + System.Environment.NewLine + info.ToString(); } }
public void ToString_Returns_The_FullName_Of_The_Assembly() { var sut = new AssemblyInformation(AssemblyUnderTest.Instance); sut.ToString().Should().Be(sut.FullName); }