<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nowsprinting</author_name>
  <author_url>https://blog.hatena.ne.jp/nowsprinting/</author_url>
  <blog_title>やらなイカ？</blog_title>
  <blog_url>https://www.nowsprinting.com/</blog_url>
  <categories>
    <anon>Unity</anon>
    <anon>C#</anon>
    <anon>JetBrains IDEs</anon>
    <anon>Testing</anon>
  </categories>
  <description>この記事は DeNA Advent Calendar 2021 16日目の記事です。 ユニットテストを書こうとしたとき、テスト対象のクラスやメソッドが大きく複雑なため断念した経験は誰しもあるのではないでしょうか。 ひとつのメソッドや関数に様々な処理・責務を持たせてしまうとテスタビリティ*1だけでなく、保守性や可読性も損なわれてしまいます。 これは「ロボット掃除機が掃除するためには部屋が片付いていなければならない」こと*2と似ています。 本記事では、メソッドを適切な単位に分割することの意義と、そのためのTipsを紹介します。 メソッド分割のPros and Cons はじめに、メソッド分割の代表…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.nowsprinting.com%2Fentry%2F2021%2F12%2F16%2F070000&quot; title=&quot;メソッド分割の意義とTips - やらなイカ？&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/n/nowsprinting/20211215/20211215084228.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-12-16 07:00:00</published>
  <title>メソッド分割の意義とTips</title>
  <type>rich</type>
  <url>https://www.nowsprinting.com/entry/2021/12/16/070000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
